| ... | @@ -1,3 +1,14 @@ | ... | @@ -1,3 +1,14 @@ |
| | 1 | // TODO: Remove condition after deprecating 'typeOf'. See https://github.com/ziglang/zig/issues/1348 |
| | 2 | test "zig fmt: change @typeOf to @TypeOf" { |
| | 3 | try testTransform( |
| | 4 | \\const a = @typeOf(@as(usize, 10)); |
| | 5 | \\ |
| | 6 | , |
| | 7 | \\const a = @TypeOf(@as(usize, 10)); |
| | 8 | \\ |
| | 9 | ); |
| | 10 | } |
| | 11 | |
| 1 | test "zig fmt: comptime struct field" { | 12 | test "zig fmt: comptime struct field" { |
| 2 | try testCanonical( | 13 | try testCanonical( |
| 3 | \\const Foo = struct { | 14 | \\const Foo = struct { |