Thread overview
[Issue 6842] Can't use alias of instance member
Aug 28, 2016
Andrej Mitrovic
Dec 17, 2022
Iain Buclaw
Feb 08, 2023
John Hall
Jan 20, 2024
Nick Treleaven
Aug 26
RazvanN
August 28, 2016
https://issues.dlang.org/show_bug.cgi?id=6842

Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |remi.thebault@outlook.com

--- Comment #8 from Andrej Mitrovic <andrej.mitrovich@gmail.com> ---
*** Issue 14848 has been marked as a duplicate of this issue. ***

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=6842

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

--
February 08, 2023
https://issues.dlang.org/show_bug.cgi?id=6842

John Hall <john.michael.hall@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.michael.hall@gmail.com

--- Comment #9 from John Hall <john.michael.hall@gmail.com> ---
*** Issue 20895 has been marked as a duplicate of this issue. ***

--
January 20, 2024
https://issues.dlang.org/show_bug.cgi?id=6842

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=16123

--
August 26
https://issues.dlang.org/show_bug.cgi?id=6842

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |turkeyman@gmail.com

--- Comment #10 from RazvanN <razvan.nitu1305@gmail.com> ---
*** Issue 24720 has been marked as a duplicate of this issue. ***

--
August 26
https://issues.dlang.org/show_bug.cgi?id=6842

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org

--- Comment #11 from Nick Treleaven <nick@geany.org> ---
> Foo foo;
> alias foo.a b;

For the next edition, this is an error: https://dlang.org/spec/legacy#alias-instance-member

Added in https://github.com/dlang/dmd/pull/15863. Refinement: https://github.com/dlang/dmd/pull/16813.

--
August 28
https://issues.dlang.org/show_bug.cgi?id=6842

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|http://d.puremagic.com/issu |https://issues.dlang.org/sh
                   |es/show_bug.cgi?id=3452     |ow_bug.cgi?id=3452

--
August 28
https://issues.dlang.org/show_bug.cgi?id=6842

--- Comment #12 from Nick Treleaven <nick@geany.org> ---
> alias foo.a b;

Note you can instead write:

ref b() => foo.a;

--