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
package main
func main() { var x interface{} switch _ := x.(type) { case int: } switch _ = x.(type) { case int: } }
produces:
x.go:8:12: expected switch expression, found simple statement (missing parentheses around composite literal?)
Investigate if this could be improved.
The text was updated successfully, but these errors were encountered:
Fixed by https://go-review.googlesource.com/#/c/14566/ .
Sorry, something went wrong.
No branches or pull requests
package main
func main() {
var x interface{}
switch _ := x.(type) {
case int:
}
switch _ = x.(type) {
case int:
}
}
produces:
x.go:8:12: expected switch expression, found simple statement (missing parentheses around composite literal?)
Investigate if this could be improved.
The text was updated successfully, but these errors were encountered: