cmd/compile: better error message syntax error in interface types #49205
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
N/A
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
mistakenly write;
What did you expect to see?
main.go:60:7: syntax error: unexpected int64, expecting semicolon or newline or | or }
What did you see instead?
main.go:60:7: syntax error: unexpected int64, expecting semicolon or newline or }
ie, Now that interfaces can be used as type constraints; the error message should probably include
|
as one of the expected tokens.The text was updated successfully, but these errors were encountered: