Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
saturating_arithmetic_does_not_allow_floats.zig
pretty
plain
permalink
blame
history
•
7 lines
•
152 B
1
export fn a() void {
2
_ = @as(f32, 1.0) +| @as(f32, 1.0);
3
}
4
5
// error
6
//
7
// :2:23: error: invalid operands to binary expression: 'float' and 'float'