[Issue 21619] Parameter-less function literal in expression statement fails to parse

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 19 21:45:48 UTC 2023


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

Nick Treleaven <nick at geany.org> changed:

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

--- Comment #2 from Nick Treleaven <nick at geany.org> ---
This requires arbitrary lookahead to parse. We could add a better error message
though. (Workaround `() { ... }();`).

Maybe we can fix the grammar by moving BlockStatment before anything that can
be a NonEmptyStatement.

--


More information about the Digitalmars-d-bugs mailing list