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
Binary const declaration like const b = 0b100 does not work.
const b = 0b100
package main import ( "fmt" ) func main() { const a = 100 const b = 0b100 fmt.Println(a + b) }
This code reports an error message while it should run properly:
9:13: expected ';', found 'IDENT' b100 (and 2 more errors)
The text was updated successfully, but these errors were encountered:
Here is the sample code in the editor: https://goplay.space/#S6RBEz3asW7
Sorry, something went wrong.
No branches or pull requests
Binary const declaration like
const b = 0b100
does not work.This code reports an error message while it should run properly:
The text was updated successfully, but these errors were encountered: