Thank you Jan,
I read the spec a bit more carefully after you pointed it out and I now
understand that a constant and a non-constant value are treated differently
and that my examples above is an example of just this.
"A constant value x can be converted to type T if x is representable by a
val
Hi!
I noticed a strange behavior and wanted to see if this is intended behavior
and why this behavior is present or if this is a bug.
// Compiles without error
x := int(-65)
fmt.Println(byte(x))
// Gives the compile time error: "constant -65 overflows byte"
fmt.Println(by