[Issue 21508] private class p in file p.d visible outside the file (module)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Feb  3 11:28:33 UTC 2021
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21508
Dlang Bot <dlang-bot at dlang.rocks> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@Geod24 created dlang/dmd pull request #12178 "Fix 21508: Do not look inside
imports that shadow a symbol" fixing this issue:
- Fix 21508: Do not look inside imports that shadow a symbol
  There was a special case to look inside an import instead of showing
  the conflict. This isn't consistent with the way imports appear to
  the user (e.g. `class std {}` will conflict with `import std.stdio`),
  so we just remove the special case and that solves the issue.
https://github.com/dlang/dmd/pull/12178
--
    
    
More information about the Digitalmars-d-bugs
mailing list