Bug 21651 – Unimported package doesn't error out when used as part of fully qualified type
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-02-21T06:53:18Z
Last change time
2021-04-03T01:03:46Z
Keywords
pull
Assigned to
No Owner
Creator
Boris Carvajal
Comments
Comment #0 by boris2.9 — 2021-02-21T06:53:18Z
code:
--- pkg/a.d
module pkg.a;
pkg.b.Y a; // Doesn't raise an error.
// int b = pkg.b.Y; // However, it does here.
--- pkg/b.d
module pkg.b;
alias Y = int;
Command: dmd pkg/a.d pkg/b.d
Should print "Error: undefined identifier `b` in package `pkg`"
Comment #1 by dlang-bot — 2021-02-22T05:46:41Z
@BorisCarvajal updated dlang/dmd pull request #12215 "Fix Issue 21651 - Unimported package doesn't error out when used as p…" fixing this issue:
- Fix Issue 21651 - Unimported package doesn't error out when used as part of fully qualified type
https://github.com/dlang/dmd/pull/12215
Comment #2 by dlang-bot — 2021-03-08T07:26:34Z
dlang/dmd pull request #12215 "Fix Issue 21651 - Unimported package doesn't error out when used as p…" was merged into master:
- ddf3d07c67412846e45b4e8f30a4626ebd03e151 by Boris Carvajal:
Fix Issue 21651 - Unimported package doesn't error out when used as part of fully qualified type
https://github.com/dlang/dmd/pull/12215
Comment #3 by dlang-bot — 2021-04-03T01:03:46Z
dlang/dmd pull request #12350 "[dmd-cxx] More fixes for package import visibility" was merged into dmd-cxx:
- f1d34057604bd181ce0933c77b27952f211196e5 by Boris Carvajal:
[dmd-cxx] Fix Issue 21651 - Unimported package doesn't error out when used as part of fully qualified type
https://github.com/dlang/dmd/pull/12350