You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a playground specific problem. One error is coming from vet. One is coming from the compiler. The problem is that vet and the compiler when run on the playground don't agree on the size of int. You can see this more clearly if you change the main function to actually print something. In the case with the vet error, you will see the error, and you will also see the output.
ianlancetaylor
changed the title
cmd/compile: incorrect type error in playground
playground: vet and compile disagree on size of int
Jan 19, 2019
What version of Go are you using (
go version
)?I can only reproduce in the Go Playground
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.org/p/asSsu2foRHF
What did you expect to see?
Successful compile.
What did you see instead?
Attempting to change the declaration to
[16]byte
results in:This doesn't reproduce when compiling for amd64 or 386, so I expect it's specific to nacl.
The text was updated successfully, but these errors were encountered: