**app.d:** ``` import std.stdio : writeln; import b : two; void main() { writeln(two()); } private int one() { return 1; } ``` **b.d:** ``` module b; import app : one; int two() { return one() + one(); } ``` Module `b` should not be allowed to import `one`, but it compiles without error. (Ran `dmd app.d b.d`.) Tested with `dmd --version` of `DMD64 D Compiler v2.094.1`.
@RazvanN7 updated dlang/dmd pull request #13257 "Fix Issue 21829, Fix Issue 21366 - is ignored when a public overload exists" fixing this issue: - Fix Issues 21829, 21366 - is ignored when a public overload exists https://github.com/dlang/dmd/pull/13257
*** This issue has been marked as a duplicate of issue 21829 ***