From 2e89ddfccf13a1a959fb398a1d441b5a095b89b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 26 Aug 2021 14:46:14 +0200 Subject: [PATCH] :bug: Improve function alternative --- src/parse/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 557f8325..b52b9175 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -841,8 +841,7 @@ ANN Type check_exp_call1(const Env env, Exp_Call *const exp) { return func->def->base->ret_type != env->gwion->type[et_auto] ? func->def->base->ret_type : exp->func->d.exp_dot.base->type; } - const loc_t pos = exp->args ? exp->args->pos : exp->func->pos; - function_alternative(env, exp->func->type, exp->args, pos); + function_alternative(env, exp->func->type, exp->args, exp->func->pos); return NULL; } -- 2.43.0