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
Milestone

Comments

@dvyukov
Copy link
Member

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
Contributor

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

@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
Development

No branches or pull requests

3 participants