| 1 | export fn entry1() void { |
| 2 | const f: f32 = 54.0 / 5; |
| 3 | _ = f; |
| 4 | } |
| 5 | export fn entry2() void { |
| 6 | const f: f32 = 54 / 5.0; |
| 7 | _ = f; |
| 8 | } |
| 9 | export fn entry3() void { |
| 10 | const f: f32 = 55.0 / 5; |
| 11 | _ = f; |
| 12 | } |
| 13 | export fn entry4() void { |
| 14 | const f: f32 = 55 / 5.0; |
| 15 | _ = f; |
| 16 | } |
| 17 | |
| 18 | // error |
| 19 | // |
| 20 | // :2:25: error: ambiguous coercion of division operands 'comptime_float' and 'comptime_int'; non-zero remainder '4' |
| 21 | // :6:23: error: ambiguous coercion of division operands 'comptime_int' and 'comptime_float'; non-zero remainder '4' |