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 devel +c99300229 Mon Jun 18 23:20:57 2018 +0000 linux/amd64
package main func main() { done := make(chan struct{}) // line 4 select { case done: // line 6 } }
Output:
./x.go:4:2: select case must be receive, send or assign recv ./x.go:6:7: done evaluated but not used
The text was updated successfully, but these errors were encountered:
Correct output in 1.9, broken in 1.10.
Sorry, something went wrong.
CC @griesemer
Change https://golang.org/cl/119755 mentions this issue: cmd/compile: more accurate position for select case error message
cmd/compile: more accurate position for select case error message
707ca18
No branches or pull requests
go version devel +c99300229 Mon Jun 18 23:20:57 2018 +0000 linux/amd64
Output:
The text was updated successfully, but these errors were encountered: