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: parses comma terminated fields #11611

Closed
dvyukov opened this issue Jul 6, 2015 · 1 comment
Closed

go/parser: parses comma terminated fields #11611

dvyukov opened this issue Jul 6, 2015 · 1 comment
Assignees
Milestone

Comments

@dvyukov
Copy link
Member

@dvyukov dvyukov commented Jul 6, 2015

gotype successfully parses (via go/parser) the following program:

package a
type T struct{int,}

while gc says:

go.go:2: syntax error: unexpected }, expecting name

As far as I see, gc is right. I don't see where spec allows commas there.

on commit af81789

@griesemer griesemer added this to the Go1.6 milestone Jul 6, 2015
@griesemer griesemer changed the title x/tools/go/types: parses comma terminated fields go/parser: parses comma terminated fields Jul 31, 2015
@gopherbot
Copy link

@gopherbot gopherbot commented Sep 15, 2015

CL https://golang.org/cl/14565 mentions this issue.

@griesemer griesemer closed this in 5b3f29a Sep 16, 2015
@golang golang locked and limited conversation to collaborators Sep 22, 2016
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
3 participants
You can’t perform that action at this time.