dvyukov opened this issue 9 years ago · 0 comments
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