mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
8 lines
138 B
Zig
8 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=
|