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/parser: range expression not parsed w/ correct precedence #2156

Closed
griesemer opened this issue Aug 16, 2011 · 1 comment
Closed

go/parser: range expression not parsed w/ correct precedence #2156

griesemer opened this issue Aug 16, 2011 · 1 comment
Assignees

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Aug 16, 2011

gofmt test.go
test.go:4:6: expected range clause

with test.go:

package main

func main() {
    for _, c := range "foo" + "bar" {
        println(c)
    }
}

It should correctly parse the range clause.
@griesemer
Copy link
Contributor Author

@griesemer griesemer commented Aug 16, 2011

Comment 1:

This issue was closed by revision 182cf98.

Status changed to Fixed.

@griesemer griesemer self-assigned this Aug 16, 2011
@golang golang locked and limited conversation to collaborators Jun 24, 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
You can’t perform that action at this time.