[Issue 24525] auto ref lambda exp not parsed if used as left-most expression in a expression statement
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 28 18:31:58 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24525
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
--- Comment #2 from Nick Treleaven <nick at geany.org> ---
> A declaration `ref () {return a;}` gets parsed
Sorry, that may be what is happening, but there is no identifier for the
declaration, so it should try to parse an ExpressionStatement.
--
More information about the Digitalmars-d-bugs
mailing list