Bug 18427 – `Symbol FOO is not visible because it is privately imported` => compiler should show how to import it

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2018-02-12T20:42:30Z
Last change time
2018-02-14T14:24:19Z
Assigned to
No Owner
Creator
Timothee Cour

Comments

Comment #0 by timothee.cour2 — 2018-02-12T20:42:30Z
for `Symbol FOO is not visible because it is privately imported` : the compiler already knows where the symbol was defined; it should show it in error message to make it easier for user to fix.
Comment #1 by razvan.nitu1305 — 2018-02-13T12:52:17Z
Comment #2 by github-bugzilla — 2018-02-14T14:24:18Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/996f9b519dc8e63d4582071d569713745369701b Fix Issue 18427 - Symbol FOO is not visible because it is privately imported => compiler should show how to import it https://github.com/dlang/dmd/commit/491a98693aab6b57c0c8a4099a9e881e84c348e1 Merge pull request #7886 from RazvanN7/Issue_18427 Fix Issue 18427 - Improve deprecation message for importing privately imported symbol merged-on-behalf-of: Mike Franklin <[email protected]>