mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
7 lines
138 B
Zig
7 lines
138 B
Zig
// Compile time coercion of float to int
|
|
test "implicit cast to comptime_int" {
|
|
const f: f32 = 54.0 / 5;
|
|
_ = f;
|
|
}
|
|
|
|
// test_error=
|