Skip to content
New issue

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

playground accepts binary literal, goplayspace does not #43

Open
therealplato opened this issue Nov 9, 2020 · 1 comment
Open

playground accepts binary literal, goplayspace does not #43

therealplato opened this issue Nov 9, 2020 · 1 comment

Comments

@therealplato
Copy link

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

@DylanGraham
Copy link

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

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

8:13: missing ',' in argument list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants