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

Closed
griesemer opened this issue Nov 14, 2013 · 1 comment
Closed

go/types: missing error messages for some short variable declarations #6766

griesemer opened this issue Nov 14, 2013 · 1 comment
Assignees

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Nov 14, 2013

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
@griesemer
Copy link
Contributor Author

@griesemer griesemer commented Nov 15, 2013

Comment 1:

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

Status changed to Fixed.

Loading

@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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants