aboutsummaryrefslogtreecommitdiff
path: root/src/runner/runner.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runner/runner.c')
-rw-r--r--src/runner/runner.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runner/runner.c b/src/runner/runner.c
index 3ddeb85..f144693 100644
--- a/src/runner/runner.c
+++ b/src/runner/runner.c
@@ -1575,7 +1575,8 @@ AstTree *runExpression(AstTree *expr, AstTreeScope *scope, bool *shouldRet,
AstTreeFunction *function =
shapeShifter->generateds.functions[metadata->index];
- return newAstTree(AST_TREE_TOKEN_FUNCTION, function,
+ return newAstTree(AST_TREE_TOKEN_FUNCTION,
+ copyAstTreeFunction(function, NULL, NULL, 0, false),
copyAstTree(expr->type), expr->str_begin, expr->str_end);
}
case AST_TREE_TOKEN_NONE: