A typo in "const" keyword causes "error: expected ',' after field" message #15229
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
Milestone
Zig Version
0.11.0-dev.2477+2ee328995
Steps to Reproduce and Observed Output
Try to compile the following code:
The following error message is shown:
Expected Output
Expected to see an error message stating that
cost
is an unknown identifier,or, since .zig files are structs, and the compiler probably considered
cost
to be the name of the field, "missing:
between fieldcost
and typestd
", and/or "fieldcost
of unknown typestd
".The text was updated successfully, but these errors were encountered: