mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 08:14:48 +00:00
Add typeOf/TypeOf render test
This commit is contained in:
parent
20a3011def
commit
23b901d45a
@ -1,3 +1,14 @@
|
||||
// TODO: Remove condition after deprecating 'typeOf'. See https://github.com/ziglang/zig/issues/1348
|
||||
test "zig fmt: change @typeOf to @TypeOf" {
|
||||
try testTransform(
|
||||
\\const a = @typeOf(@as(usize, 10));
|
||||
\\
|
||||
,
|
||||
\\const a = @TypeOf(@as(usize, 10));
|
||||
\\
|
||||
);
|
||||
}
|
||||
|
||||
test "zig fmt: comptime struct field" {
|
||||
try testCanonical(
|
||||
\\const Foo = struct {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user