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
var i I var s string switch i { case s: }
produces
invalid operation: cannot compare s == i (mismatched types string and I)
The compiler at 1.17 reported
invalid case s in switch on i (mismatched types string and I)
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/382354 mentions this issue: cmd/compile/internal/types2: better error messages for type switches
cmd/compile/internal/types2: better error messages for type switches
Sorry, something went wrong.
63e8331
No branches or pull requests
produces
The compiler at 1.17 reported
The text was updated successfully, but these errors were encountered: