diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-11-22 01:19:50 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-11-23 12:13:39 +0200 |
| commit | d5da2a6114926fae44f31eeab0706578f090dca8 (patch) | |
| tree | b2a561651f35aae2dd934f43690e0311c95db0c6 /src/value.zig | |
| parent | 80575face7a3b1e0f47e413507a6fa8b1d002e57 (diff) | |
| download | zig-d5da2a6114926fae44f31eeab0706578f090dca8.tar.gz zig-d5da2a6114926fae44f31eeab0706578f090dca8.zip | |
Sema: implement tuple declarations
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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]; } |
