cmd/compile: spurious undefined identifier warning for invalid identifier #68183
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
gabywins
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The first error is irrelevant; the second error is the real problem.
I ran into this in a real program by accidentally typing a non-breaking space (U+00A0), which renders invisibly. That made the first error look even weirder:
If the identifier has an invalid character, that should be diagnosed and there shouldn't be any other errors about it.
/cc @griesemer
The text was updated successfully, but these errors were encountered: