Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
comptime_implicit_cast_f64_to_f32.zig
pretty
plain
permalink
blame
history
•
9 lines
•
170 B
1
export fn entry() void {
2
const x: f64 = 16777217;
3
const y: f32 = x;
4
_ = y;
5
}
6
7
// error
8
//
9
// :3:20: error: type 'f32' cannot represent float value '16777217'