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 version
Present in both tip and 1.8:
go version devel +7337181daf Fri Apr 14 08:44:45 2017 +0000 linux/amd64 go version go1.8.1 linux/amd64
Compile f.go:
f.go
package foo func Foo(a bar) { switch x := a.(type) { default: _ = x } }
./f.go:3: undefined: bar
./f.go:3:12: undefined: bar ./f.go:4:15: use of .(type) outside type switch
Not urgent because the correct error is right above it, but this error is still wrong and unnecessary.
The text was updated successfully, but these errors were encountered:
Slightly smaller repro:
package foo func Foo() { switch x := a.(type) { default: _ = x } }
./f.go:4: undefined: a ./f.go:4: use of .(type) outside type switch
Sorry, something went wrong.
CL https://golang.org/cl/42210 mentions this issue.
cee5cd5
No branches or pull requests
What version of Go are you using (
go version
)?Present in both tip and 1.8:
What did you do?
Compile
f.go
:What did you expect to see?
What did you see instead?
Not urgent because the correct error is right above it, but this error is still wrong and unnecessary.
The text was updated successfully, but these errors were encountered: