Bug 20638 – spelling correction offers private member of package on named package access

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2020-03-05T13:10:40Z
Last change time
2020-03-06T07:20:14Z
Keywords
pull
Assigned to
No Owner
Creator
FeepingCreature

Comments

Comment #0 by default_357-line — 2020-03-05T13:10:40Z
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?
Comment #1 by dlang-bot — 2020-03-05T13:24:01Z
@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
Comment #2 by dlang-bot — 2020-03-06T07:20:14Z
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