From: Jérémie Astor Date: Thu, 26 Aug 2021 12:46:14 +0000 (+0200) Subject: :bug: Improve function alternative X-Git-Tag: nightly~470^2~39 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2e89ddfccf13a1a959fb398a1d441b5a095b89b4;p=gwion.git :bug: Improve function alternative --- 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; }