[Issue 16085] wrong visibility warning for overloaded alias symbol
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jul 9 03:12:00 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16085
--- Comment #10 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Martin Nowak from comment #9)
> (In reply to Walter Bright from comment #8)
> > > The member "reallocate" should effectively hide the private import, yet the
> > > deprecation message still appears.
> >
> > The private import is hidden. The alias is not.
>
> Don't quite get that comment. Imports are private by default, so are the
> selectively imported symbol aliases.
import whatever : reallocate; // <- private
This is the equivalent of:
alias reallocate = whatever.reallocate;
I.e. an actual alias is generated. The alias is not hidden. The import is.
> Already figured out what's wrong with the overload implementation in
> symbolIsVisible, just need to find time to fix it.
Please don't fix until we agree on what the result should be.
--
More information about the Digitalmars-d-bugs
mailing list