1 // expected: cannot convert 1.5 to int32 2 // 3 // A float constant with a fractional part is not representable as an integer; 4 // go/types reports a truncated conversion. stage4 emitted the convert and the 5 // value was truncated silently. 6 package main 7 8 func main() { 9 x := int32(1.5) 10 println(x) 11 } 12