[Issue 15161] Parser bug on ref delegates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 21 09:31:53 UTC 2019


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
It parses, the error is output during dsymbol semantic.
The ref is not a MemberFunctionAttribute it's a storage class of the type of a
VarDeclaration, which is a noop. The ref you want would actually have to placed
after the `delegate()`, as a MemberFunctionAttribute, but this is illegal.

--


More information about the Digitalmars-d-bugs mailing list