| author | |
| committer | |
| log | 23b901d45af9c1c3c662fc851be5d75154538c8e |
| tree | ed427868493ae3498d9b751695392dec7c785b1e |
| parent | 20a3011def8ce3f2f4482ab28e744bf1e9ec25f2 |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 11 insertions(+), 0 deletions(-)
lib/std/zig/parser_test.zig+11| ... | ... | @@ -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 | 12 | test "zig fmt: comptime struct field" { |
| 2 | 13 | try testCanonical( |
| 3 | 14 | \\const Foo = struct { |