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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from RazvanN <[email protected]> ---
The problem is that this code is violating the grammar. DMD expects a
declaration but we have an expression, so it just errors out with a silly token
error. I don't know if this can be properly fixed, since you have to actually
parse ahead to see what you got there and if multiple errors occur, then it's
hard to know where to restart parsing.

--

Reply via email to