From d5da2a6114926fae44f31eeab0706578f090dca8 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Tue, 22 Nov 2022 01:19:50 +0200 Subject: Sema: implement tuple declarations --- src/value.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/value.zig') diff --git a/src/value.zig b/src/value.zig index 43c31905ca..94769b4da7 100644 --- a/src/value.zig +++ b/src/value.zig @@ -2209,7 +2209,7 @@ pub const Value = extern union { const b_field_vals = b.castTag(.aggregate).?.data; assert(a_field_vals.len == b_field_vals.len); - if (ty.isTupleOrAnonStruct()) { + if (ty.isSimpleTupleOrAnonStruct()) { const types = ty.tupleFields().types; assert(types.len == a_field_vals.len); for (types) |field_ty, i| { @@ -3004,7 +3004,7 @@ pub const Value = extern union { .the_only_possible_value => return ty.onePossibleValue().?, .empty_struct_value => { - if (ty.isTupleOrAnonStruct()) { + if (ty.isSimpleTupleOrAnonStruct()) { const tuple = ty.tupleFields(); return tuple.values[index]; } -- cgit v1.2.3