Skip to content

Commit 48466d0

Browse files
committedMar 4, 2024
fix: correct parsing error occurring with the use of the walrus operator with multiple variable declarations
1 parent 84aa5d7 commit 48466d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎argon/lang/parser2/parser2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2783,7 +2783,7 @@ Node *Parser::ParseWalrus(Context *context, node::Node *left) {
27832783
throw ParserException(itm->loc, kStandardError[29], ":=");
27842784
}
27852785

2786-
ListAppend(list, (ArObject *) itm);
2786+
ListAppend(list, ((const node::Unary*) itm)->value);
27872787
}
27882788

27892789
multi = true;

0 commit comments

Comments
 (0)
Please sign in to comment.