aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/test_ambiguous_coercion.zig
blob: 39c7d9d617bc7c980823260b7e800216d645adde (plain)
1
2
3
4
5
6
7
// Compile time coercion of float to int
test "implicit cast to comptime_int" {
    const f: f32 = 54.0 / 5;
    _ = f;
}

// test_error=