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
On the following program:
package a var x = -byte(1)
gotype says:
gotype
tmp.go:2:10: byte(1) (constant -1 of type byte) overflows byte
It should say -byte(1). byte(1) does not overflow byte.
-byte(1)
byte(1)
on commit e9a746d
The text was updated successfully, but these errors were encountered:
golang/tools@6369699
go/types: better error message for certain unary/binary expression er…
4ba1f25
…rors Port of https://go-review.googlesource.com/11363. Fixes #11367. Change-Id: Ie0a82bcfab782c514d1947e7a6b190e286afd159 Reviewed-on: https://go-review.googlesource.com/11367 Reviewed-by: Alan Donovan <[email protected]>
No branches or pull requests
On the following program:
gotype
says:It should say
-byte(1)
.byte(1)
does not overflow byte.on commit e9a746d
The text was updated successfully, but these errors were encountered: