aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/tuple_declarations.zig
diff options
context:
space:
mode:
authorr00ster91 <r00ster91@proton.me>2022-12-13 22:30:06 +0100
committerr00ster91 <r00ster91@proton.me>2022-12-17 14:11:33 +0100
commitaac2d6b56f32134ea32fb3d984e3fcdfddd8aaf6 (patch)
tree941528727d4d0a5b92f58c0b862f0d5f372b89e0 /test/behavior/tuple_declarations.zig
parent7350ea3e2da4d4e6ef5092cd9f0832beef0291d5 (diff)
downloadzig-aac2d6b56f32134ea32fb3d984e3fcdfddd8aaf6.tar.gz
zig-aac2d6b56f32134ea32fb3d984e3fcdfddd8aaf6.zip
std.builtin: rename Type.UnionField and Type.StructField's field_type to type
Diffstat (limited to 'test/behavior/tuple_declarations.zig')
-rw-r--r--test/behavior/tuple_declarations.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/behavior/tuple_declarations.zig b/test/behavior/tuple_declarations.zig
index 7beab1ca8f..87d4997c8b 100644
--- a/test/behavior/tuple_declarations.zig
+++ b/test/behavior/tuple_declarations.zig
@@ -20,13 +20,13 @@ test "tuple declaration type info" {
try expect(info.is_tuple);
try expectEqualStrings(info.fields[0].name, "0");
- try expect(info.fields[0].field_type == u32);
+ try expect(info.fields[0].type == u32);
try expect(@ptrCast(*const u32, @alignCast(@alignOf(u32), info.fields[0].default_value)).* == 1);
try expect(info.fields[0].is_comptime);
try expect(info.fields[0].alignment == 2);
try expectEqualStrings(info.fields[1].name, "1");
- try expect(info.fields[1].field_type == []const u8);
+ try expect(info.fields[1].type == []const u8);
try expect(info.fields[1].default_value == null);
try expect(!info.fields[1].is_comptime);
try expect(info.fields[1].alignment == @alignOf([]const u8));
@@ -44,13 +44,13 @@ test "tuple declaration type info" {
try expect(info.is_tuple);
try expectEqualStrings(info.fields[0].name, "0");
- try expect(info.fields[0].field_type == u1);
+ try expect(info.fields[0].type == u1);
try expectEqualStrings(info.fields[1].name, "1");
- try expect(info.fields[1].field_type == u30);
+ try expect(info.fields[1].type == u30);
try expectEqualStrings(info.fields[2].name, "2");
- try expect(info.fields[2].field_type == u1);
+ try expect(info.fields[2].type == u1);
}
}