[Issue 12682] Bad error messages with global assignment of mutable lambda value
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 22 15:34:31 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=12682
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |razvan.nitu1305 at gmail.com
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
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.
--
More information about the Digitalmars-d-bugs
mailing list