Weird compiler reporting when for
is forgotten
#8128
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
for
is forgotten
#8128
I don't know if it's fixable, but it would be nice if the
... || {}
syntax created an error when it doesn't make sense (or does it and I am confused?)To reproduce, try to compile:
As you see
for
is missing at line 3, but the compiler reports:Which is very misleading.
The text was updated successfully, but these errors were encountered: