-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: better error message syntax error in interface types #49205
Comments
Change https://golang.org/cl/359655 mentions this issue: |
|
Marking for 1.18 if we get to it, otherwise fine to delay to 1.19. |
The error is reported by |
Change https://go.dev/cl/396914 mentions this issue: |
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: