We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go/types accepts the following program:
package a func f() { switch 0 { case 0: case 0: } }
While both gc and gccgo reject it with duplicate case 0 in switch. Compilers should agree on validity of this program.
duplicate case 0 in switch
on commit 997b354
The text was updated successfully, but these errors were encountered:
Note that the spec doesn't specify that this is prohibited (but it should). See also #4524.
Sorry, something went wrong.
https://go-review.googlesource.com/#/c/13285/
CL https://golang.org/cl/13285 mentions this issue.
b1b3243
No branches or pull requests
go/types accepts the following program:
While both gc and gccgo reject it with
duplicate case 0 in switch
.Compilers should agree on validity of this program.
on commit 997b354
The text was updated successfully, but these errors were encountered: