mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 16:45:27 +00:00
test/behavior/generics.zig: remove outdated TODO
This commit is contained in:
parent
ff835cce10
commit
b975701a4d
@ -22,11 +22,7 @@ test "simple generic fn" {
|
||||
|
||||
try expect(max(i32, 3, -1) == 3);
|
||||
try expect(max(u8, 1, 100) == 100);
|
||||
if (false) {
|
||||
// TODO: zig is incorrectly emitting the following:
|
||||
// error: cast of value 1.23e-01 to type 'f32' loses information
|
||||
try expect(max(f32, 0.123, 0.456) == 0.456);
|
||||
}
|
||||
try expect(max(f32, 0.123, 0.456) == 0.456);
|
||||
try expect(add(2, 3) == 5);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user