mirror of
https://github.com/ziglang/zig.git
synced 2024-11-14 16:13:24 +00: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=
|