[Issue 14378] Parse block statement followed by ';' as a function literal

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Apr 11 00:25:23 PDT 2015


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

yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
            Summary|ExpressionStatement         |Parse block statement
                   |incorrectly parsed as       |followed by ';' as a
                   |BlockStatement              |function literal
           Severity|normal                      |enhancement

--- Comment #4 from yebblies <yebblies at gmail.com> ---
AFAIK this is intentional.  If this context is ambiguous, it will be parsed as
a block statement.  You will probably want to make this a spec bug, but I'll
leave that to you.

--


More information about the Digitalmars-d-bugs mailing list