Cannot access static overloaded function?

Domain dont_email at empty.com
Wed Apr 2 23:44:53 PDT 2014


I have 2 modules:

module A;
public class A {
     private static void foo() {}
     public  static void foo(int) {}
}

module B;
import A;
public class B {
     public static void bar() { A.foo(0); }
}

Error: class A.A member foo is not accessible


More information about the Digitalmars-d-learn mailing list