Can a static member be overloaded?

type A() = static member B() = () static member B(x) = B() //ERROR: The value or constructor 'B' is not defined 
+4
source share
1 answer

When accessing a static member in F # you need to use the fully qualified name (including the type name). The F # compiler does not automatically look for static members of the current class.

The following should work:

 type A() = static member B() = () static member B(x) = AB() 
+5
source

Source: https://habr.com/ru/post/1309695/


All Articles