Skip to content

Commit b1cc91b

Browse files
BUGFIX: Wrong start index in 'astToNewCall' function. It must skip the first child.
1 parent 9c64f4d commit b1cc91b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Ref<AstNode> astToNewCall(Ref<AstNode> callExpr)
142142

143143
auto children = callExpr->children();
144144

145-
for (size_t i = 0; i < children.size(); ++i)
145+
for (size_t i = 1; i < children.size(); ++i)
146146
result->addChild(children[i]);
147147

148148
return result;

0 commit comments

Comments
 (0)