[Issue 16085] Imported name causes lookup deprecation warning even if masked by member name
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun May 29 12:39:09 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16085
--- Comment #4 from Martin Nowak <code at dawg.eu> ---
This is just an occurrence of wrong code caused by issue 314, b/c selective
imports weren't checked for visibility until recently.
struct Bucketizer
{
import whatever : reallocate; // <- private
}
struct Segregator(LargeAllocator)
{
LargeAllocator _large;
void reallocate()
{
_large.reallocate(); // deprecation
}
}
--
More information about the Digitalmars-d-bugs
mailing list