See #5839, #20637. Repro: a.d: private void foo() { } b.d: import a; void main() { a.foo; } Expected: b.d(2): Error: undefined identifier foo in module a Got: b.d(2): Error: undefined identifier foo in module a, did you mean function foo?
@FeepingCreature created dlang/dmd pull request #10868 "Fix issue 20638: only offer correction for module property if symbol is visible." fixing this issue: - Fix issue 20638: only offer correction for symbol, accessed as explicit module property, if symbol is visible. https://github.com/dlang/dmd/pull/10868
dlang/dmd pull request #10868 "Fix issue 20638: only offer correction for module property if symbol is visible." was merged into master: - 0122454e8cbe9952698f61a833bcd31d44d989c7 by Mathis Beer: Fix issue 20638: only offer correction for symbol, accessed as explicit module property, if symbol is visible. https://github.com/dlang/dmd/pull/10868