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
go tool compile -e x.go of
go tool compile -e x.go
package main const ( _ = 1_ _ = 0b _ = 0o _ = 0x _ = 0xde__ad )
produces:
x.go:4:6: malformed integer constant: 1_ x.go:4:7: '_' must separate successive digits x.go:5:6: malformed integer constant: 0b x.go:5:8: binary literal has no digits x.go:6:6: malformed integer constant: 0o x.go:6:8: octal literal has no digits x.go:7:6: malformed integer constant: 0x x.go:7:8: hexadecimal literal has no digits x.go:8:6: malformed integer constant: 0xde__ad x.go:8:11: '_' must separate successive digits
The lexer already produces a detailed error message, no need for the noder to report a 2nd error.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/166519 mentions this issue: cmd/compile: don't report redundant error for invalid integer literals
cmd/compile: don't report redundant error for invalid integer literals
Sorry, something went wrong.
bea58ef
No branches or pull requests
go tool compile -e x.go
ofproduces:
The lexer already produces a detailed error message, no need for the noder to report a 2nd error.
The text was updated successfully, but these errors were encountered: