bug fix
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
fun f() return 1, 2;
|
||||
print((a, b) = f(), '\n');
|
||||
@@ -1,8 +1,9 @@
|
||||
|
||||
fun hello()
|
||||
return 1, "hello";
|
||||
return [1, 2, 3], "hello";
|
||||
|
||||
a, b = hello();
|
||||
print((a, b, c) = hello(), '\n');
|
||||
|
||||
print('a = ', a, '\n');
|
||||
print('b = ', b, '\n');
|
||||
print('c = ', c, '\n');
|
||||
@@ -1637,6 +1637,9 @@ static Node *parse_expression_2(Context *ctx, Node *left_expr, int min_prec, _Bo
|
||||
|
||||
if(right_expr == NULL)
|
||||
return NULL;
|
||||
|
||||
if(ctx->token->kind == ',' && allow_toplev_tuples == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
OperExprNode *temp;
|
||||
|
||||
Reference in New Issue
Block a user