Thread overview
[Issue 16160] selective imports in aggregation shadow @property functions
Jun 10, 2016
Robert Schadek
Jul 18, 2016
det
[Issue 16160] Selective imports in aggregate types shadow methods
Jul 19, 2017
Vladimir Panteleev
Mar 30, 2019
Basile-z
Mar 21, 2020
Basile-z
Nov 09, 2022
RazvanN
Nov 09, 2022
RazvanN
June 10, 2016
https://issues.dlang.org/show_bug.cgi?id=16160

Robert Schadek <rburners@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
           Severity|enhancement                 |critical

--
July 18, 2016
https://issues.dlang.org/show_bug.cgi?id=16160

det <2krnk@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |2krnk@gmx.net

--
July 18, 2017
https://issues.dlang.org/show_bug.cgi?id=16160

feklushkin.denis@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |feklushkin.denis@gmail.com

--
July 19, 2017
https://issues.dlang.org/show_bug.cgi?id=16160

Vladimir Panteleev <dlang-bugzilla@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@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.

--
March 30, 2019
https://issues.dlang.org/show_bug.cgi?id=16160

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
Works with parens:

    assert(f.empty());

Because the compiler can figure out that empty() is a member func, beforehand. And @property can be dropped from the test case.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=16160

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
November 09, 2022
https://issues.dlang.org/show_bug.cgi?id=16160

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |FIXED

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
Not anymore. This code compiles now. Closing as WORKSFORME.

--
November 09, 2022
https://issues.dlang.org/show_bug.cgi?id=16160

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |WORKSFORME

--