Open halmai opened 1 week ago
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)
Here is the sample code in the editor: https://goplay.space/#S6RBEz3asW7
Binary const declaration like
const b = 0b100
does not work.This code reports an error message while it should run properly: