[Issue 15966] [REG 2.071] {public,protected} imports in base class ignored on symbol lookup

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 16 05:07:47 PDT 2016


--- Comment #8 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Mathias Lang from comment #6)
> A base class in another module can
> already override global imports by introducing new local symbols.

The problem is if symbols are added to that import, then they have an
unintended side effect of overriding local symbols in the derived class code.

Again, this is exactly the kind of problem this change was designed to stop.


More information about the Digitalmars-d-bugs mailing list