Skip to content
New issue

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: missing error messages for some short variable declarations #6766

griesemer opened this issue Nov 14, 2013 · 1 comment


Copy link

In an otherwise empty scope (no earlier declarations), the following short variable
declarations are not handled correctly:

a, a := 1, 2 // should be an error

(try also a, a, b := 1, 2, 3 with and w/o a predeclared b)

for _ := range "" {} // should be an error
Copy link
Contributor Author

Comment 1:

This issue was closed by revision golang/tools@e785f05.

Status changed to Fixed.

@griesemer griesemer self-assigned this Nov 15, 2013
@golang golang locked and limited conversation to collaborators Jun 25, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

2 participants