mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 06:24:44 +01: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=
|