We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Parsing (go test -run Parse -src=x.go)
//+build ignore package p func bad() { if f()) { return } }
results in:
parser_test.go:26: x.go:6:11: syntax error: unexpected ), expecting semicolon or newline parser_test.go:26: x.go:6:11: syntax error: unexpected f, expecting { after if clause
The problem is due to an incorrectly set up variable when parsing statement headers.
The 2nd error is suppressed when using cmd/compile because it's on the same line.
The text was updated successfully, but these errors were encountered:
See also #11377.
Sorry, something went wrong.
Change https://golang.org/cl/87317 mentions this issue: cmd/compile/internal/syntax: don't record semi position if there's none
cmd/compile/internal/syntax: don't record semi position if there's none
Safe for 1.10.
08e342d
No branches or pull requests
Parsing (go test -run Parse -src=x.go)
results in:
The problem is due to an incorrectly set up variable when parsing statement headers.
The 2nd error is suppressed when using cmd/compile because it's on the same line.
The text was updated successfully, but these errors were encountered: