cmd/compile: confusing message for syntax error #56022
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
Bug mentioned by @apparentlymart in #55863.
With tip, compiling
produces the error messages
The first error makes no sense: it is saying that it found an unexpected left parenthesis when it expected a left parenthesis.
I think the error is in
(*parser).funcDeclOrNil
: it should not say that it expects a left parenthesis if it already found a receiver.CC @griesemer
The text was updated successfully, but these errors were encountered: