goplayspace icon indicating copy to clipboard operation
goplayspace copied to clipboard

playground accepts binary literal, goplayspace does not

Open therealplato opened this issue 3 years ago • 1 comments

Expected: I can declare var v int = 0b11010 Actual: 8:15: expected ';', found 'IDENT' b11010 (and 1 more errors) Repros: https://play.golang.org/p/Sw9HFvlcmMr https://goplay.space/#Sw9HFvlcmMr

therealplato avatar Nov 09 '20 21:11 therealplato

Another example: https://goplay.space/#8oYULUW3yL2

func main() {
	b := byte(0b00010011)
}

8:13: missing ',' in argument list

DylanGraham avatar Nov 02 '21 21:11 DylanGraham