Allow for optional ok for return

This commit is contained in:
gingerBill
2018-09-11 10:55:30 +01:00
parent cfd0dfd2bf
commit 91477e9e69
3 changed files with 30 additions and 3 deletions

View File

@@ -3920,7 +3920,8 @@ bool check_unpack_arguments(CheckerContext *ctx, Entity **lhs, isize lhs_count,
Operand ok = o;
val.mode = Addressing_Value;
ok.mode = Addressing_Value;
ok.type = t_bool;
// ok.type = t_bool;
ok.type = t_untyped_bool;
array_add(operands, val);
array_add(operands, ok);