navid/haze / 90400c3cb2eb4f37a299a5eb96dbf6c3ad2fda3fc79b7a824ce800f18386f55d / samples/baseline_2.5/cast_void_error.hz
cast_void_error.hz
← samples/baseline_2.5 · 123 bytes · raw · download
// There is no value representation for void.
fn main() {
var x i32 = 1
var y void = cast[void](x)
print(y)
}