navid/haze / 48ef02229ff0b40a4849e26fc1a9f371991f791d48bb426ffeb35dad068eb87d / samples/baseline_2.5/cast_narrow_compound_error.hz
cast_narrow_compound_error.hz
← samples/baseline_2.5 · 126 bytes · raw · download
// Compound assignment on a narrow integer would hide a truncation.
fn main() {
var x i8 = 100
x += 1
print(x)
}