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`"
@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
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
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