From 40fe52e665d902a83e545145dfedfacf0cc863a2 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sat, 18 Aug 2012 19:37:51 +0200 Subject: [PATCH] ast_call: adopt the funciton's return type --- ast.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ast.c b/ast.c index 89ae7ac..c3dfe21 100644 --- a/ast.c +++ b/ast.c @@ -533,6 +533,10 @@ ast_call* ast_call_new(lex_ctx ctx, self->func = funcexpr; + self->expression.vtype = funcexpr->expression.next->expression.vtype; + if (funcexpr->expression.next->expression.next) + self->expression.next = ast_type_copy(ctx, funcexpr->expression.next->expression.next); + return self; } MEM_VEC_FUNCTIONS(ast_call, ast_expression*, params) -- 2.39.2