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/printer: output not handling commas + comments correctly #1542
Labels
Comments
There appears to be a failure for all types of comments. The following compiles before gofmt; it does not compile after gofmt. syntax error: unexpected semicolon or newline, expecting } non-declaration statement outside function body syntax error: unexpected } package comments func general() { var a = []int{1, 2, /*jasldf*/ } _ = a } func generalspan() { var a = []int{1, 2, /*jasldf */ } _ = a } func line() { var a = []int{1, 2, // jasldf } _ = a } |
Owner changed to g...@golang.org. Status changed to Accepted. |
Related to issue #1505, although in this case the position information is presumably correct. |
This was fixed with issue #1505, but to have a concrete test, see: http://golang.org/cl/5645080 |
This issue was closed by revision a0acdd2. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by zhengbaiqiang:
The text was updated successfully, but these errors were encountered: