[Issue 16160] Selective imports in aggregate types shadow methods

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 19 00:09:43 PDT 2017


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

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=10658
            Summary|selective imports in        |Selective imports in
                   |aggregation shadow          |aggregate types shadow
                   |@property functions         |methods
                 OS|Linux                       |All
           Severity|critical                    |normal

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Worth noting that before https://github.com/dlang/dmd/pull/2417, the error
message made a bit more sense:

test.d(4): Error: function test.Foo.empty conflicts with alias test.Foo.empty
at test.d(2)

The current error message mentions that f.empty is of type void, which is
misleading.

--


More information about the Digitalmars-d-bugs mailing list