| author | |
| committer | |
| log | b975701a4d98f2bf124fd4e66ca57e337827ec5a |
| tree | b2db748379f92af903fcd5d4db028bc9f86ee5fa |
| parent | ff835cce106c27603142533e4eb59792abcf1f13 |
1 files changed, 1 insertions(+), 5 deletions(-)
test/behavior/generics.zig+1-5| ... | ... | @@ -22,11 +22,7 @@ test "simple generic fn" { |
| 22 | 22 | |
| 23 | 23 | try expect(max(i32, 3, -1) == 3); |
| 24 | 24 | try expect(max(u8, 1, 100) == 100); |
| 25 | if (false) { | |
| 26 | // TODO: zig is incorrectly emitting the following: | |
| 27 | // error: cast of value 1.23e-01 to type 'f32' loses information | |
| 28 | try expect(max(f32, 0.123, 0.456) == 0.456); | |
| 29 | } | |
| 25 | try expect(max(f32, 0.123, 0.456) == 0.456); | |
| 30 | 26 | try expect(add(2, 3) == 5); |
| 31 | 27 | } |
| 32 | 28 |