[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
Tue May 17 15:14:44 PDT 2016


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

--- Comment #12 from Martin Nowak <code at dawg.eu> ---
(In reply to Dicebot from comment #10)
> NB: please make sure that if this is not allowed anymore, it is
> appropriately covered by -transition=checkimport , as far as I know we had
> quite some code relying on such behaviour as an intended feature.

Yes, we'll make sure this is the case before the next release.

(In reply to Mathias Lang from comment #11)
> If you don't want this behavior, then `import` from base classes should not
> be visible at all (even within the same module), or we'll end up in a weird
> place with 2 or more different rules.

It isn't visible even in the same module, see
https://github.com/dlang/dmd/blob/7d00095301c4780b41addcfeb50f4743a9a6c5d4/test/fail_compilation/lookup.d.

--


More information about the Digitalmars-d-bugs mailing list