--- test.d void main() { import bar; foo(1); // Compiles, violating private. } --- bar.d import std.stdio; private void foo(int i) { writeln("Private!!!"); } void foo() { writeln("Public"); }
*** Issue 22132 has been marked as a duplicate of this issue. ***
@RazvanN7 created dlang/dmd pull request #13257 "Fix Issue 21829, Fix Issue 21366 - is ignored when a public overload exists" fixing this issue: - Fix Issue 21829, Fix Issue 21366 - is ignored when a public overload exists https://github.com/dlang/dmd/pull/13257
*** Issue 21366 has been marked as a duplicate of this issue. ***
*** Issue 22083 has been marked as a duplicate of this issue. ***
*** This issue has been marked as a duplicate of issue 3254 ***