[Issue 15900] [REG 2.071] (Import deprecation) Public import ignored when using fully qualified name

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jul 29 18:15:04 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15900

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/0a20f1d407281f61da5b6386fdbe762bab410200
fix Issue 15900 - public imports not accessible using FQN

- public imports in imported modules were not accessbile using their
  FQN, this was an oversight when adding the package tree masking to fix
  Bugzilla 313 (see #5426)
- fixed by recursively checking imported scopes for accessible packages
- reuse Module.insearch to not follow import cycles
- Uses the same reduced visibility distinction (only private vs. rest) as the
  unqualified symbol search, b/c extending importedScopes to track rich
  visibility (e.g. package(a.b)) was out of scope for a regression fix.
  This should be implemented when combining the search/import w/
  the symbol visibility mechanism.

https://github.com/dlang/dmd/commit/4caed5518c492341a23f1da890c2931e73e0296a
Merge pull request #5967 from MartinNowak/fix15900

fix Issue 15900 - public imports not accessible using FQN

--


More information about the Digitalmars-d-bugs mailing list