[Issue 16085] wrong visibility warning for overloaded alias symbol

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon May 30 14:02:53 PDT 2016


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

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com

--- Comment #8 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Andrei Alexandrescu from comment #5)
> struct Bucketizer
> {
>     import whatever : reallocate; // <- private

This is the equivalent of:

      alias reallocate = whatever.reallocate;

meaning that the declaration is in the current scope, not the import scope.

> The member "reallocate" should effectively hide the private import, yet the
> deprecation message still appears.

The private import is hidden. The alias is not.

--


More information about the Digitalmars-d-bugs mailing list