diff options
| author | Jonathan Marler <johnnymarler@gmail.com> | 2022-02-01 11:42:41 -0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-03-08 20:38:12 +0200 |
| commit | d805adddd6744e0d55263c02d2a03e27ad0c7d68 (patch) | |
| tree | 430dca3714090db578e6b34ed497ff2b3baee783 /test/behavior/tuple.zig | |
| parent | 404f5d617982e2323c6ab6b878c29880af3d64c2 (diff) | |
| download | zig-d805adddd6744e0d55263c02d2a03e27ad0c7d68.tar.gz zig-d805adddd6744e0d55263c02d2a03e27ad0c7d68.zip | |
deprecated TypeInfo in favor of Type
Co-authored-by: Veikka Tuominen <git@vexu.eu>
Diffstat (limited to 'test/behavior/tuple.zig')
| -rw-r--r-- | test/behavior/tuple.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/behavior/tuple.zig b/test/behavior/tuple.zig index 4c13668dbd..010bd9467f 100644 --- a/test/behavior/tuple.zig +++ b/test/behavior/tuple.zig @@ -125,23 +125,23 @@ test "tuple initializer for var" { test "array-like initializer for tuple types" { if (builtin.zig_backend != .stage1) return error.SkipZigTest; // TODO - const T = @Type(std.builtin.TypeInfo{ - .Struct = std.builtin.TypeInfo.Struct{ + const T = @Type(.{ + .Struct = .{ .is_tuple = true, .layout = .Auto, - .decls = &[_]std.builtin.TypeInfo.Declaration{}, - .fields = &[_]std.builtin.TypeInfo.StructField{ + .decls = &.{}, + .fields = &.{ .{ .name = "0", .field_type = i32, - .default_value = @as(?i32, null), + .default_value = null, .is_comptime = false, .alignment = @alignOf(i32), }, .{ .name = "1", .field_type = u8, - .default_value = @as(?i32, null), + .default_value = null, .is_comptime = false, .alignment = @alignOf(i32), }, |
