This code should compile: --- module foo; // void f(int,int) { } // uncomment to remove error private void f(int) { } void f() { } --- import foo; void main() { f(); } --- main.d(5): Error: module main function foo.f is private ---
Cannot reproduce on git HEAD ubuntu 16.04. Closing as Fixed.