Thread overview
[Issue 12288] delegate literals should be allowed as class members
Dec 31, 2020
Mathias LANG
Dec 31, 2020
timon.gehr@gmx.ch
Dec 17, 2022
Iain Buclaw
February 15, 2016
https://issues.dlang.org/show_bug.cgi?id=12288

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--
December 31, 2020
https://issues.dlang.org/show_bug.cgi?id=12288

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |pro.mathias.lang@gmail.com
         Resolution|---                         |DUPLICATE

--- Comment #2 from Mathias LANG <pro.mathias.lang@gmail.com> ---
```
class C{
    int x=3;
    auto a() => x;
}
static assert(new C().a()==3);
```

This now compiles with `-preview=shortenedMethod`.
Marking as a duplicate of 7176 as a consequence.

*** This issue has been marked as a duplicate of issue 7176 ***

--
December 31, 2020
https://issues.dlang.org/show_bug.cgi?id=12288

timon.gehr@gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #3 from timon.gehr@gmx.ch ---
This is not a duplicate, this issue is not about syntax at all!

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--