From 2cdac3fee0ffc38f38d8148e35e455af25b61bbf Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 22:02:56 +0200 Subject: [PATCH] :art: Remove useless check --- src/parse/check.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index 592bd0bf..b9c6bf23 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -794,8 +794,6 @@ ANN Type check_exp_call1(const Env env, const Exp_Call *exp) { return check_exp_call_template(env, (Exp_Call*)exp); const Func func = find_func_match(env, exp->func->type->e->d.func, exp->args); if((exp_self(exp)->d.exp_call.m_func = func)) { - if(func->value_ref->from->ctx && func->value_ref->from->ctx->error) - ERR_O(exp_self(exp)->pos, _("function '%s' is errored"), func->name) exp->func->type = func->value_ref->type; return func->def->base->ret_type; } -- 2.43.0