From: Jérémie Astor Date: Tue, 15 Sep 2020 23:44:50 +0000 (+0200) Subject: :art: Resolve senseless check X-Git-Tag: nightly~1286 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=feff7a6a7c60acc70bc7217f549af9a603de705d;p=gwion.git :art: Resolve senseless check --- diff --git a/src/parse/check.c b/src/parse/check.c index 0a763dfa..8c1b5562 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -786,8 +786,6 @@ ANN static Type check_lambda_call(const Env env, const Exp_Call *exp) { } ANN Type check_exp_call1(const Env env, const Exp_Call *exp) { - if(exp->func->exp_type == ae_exp_decl) - ERR_O(exp_self(exp)->pos, _("It makes no sense to call a function pointer at declaration")) CHECK_OO(check_exp(env, exp->func)) if(isa(exp->func->info->type, env->gwion->type[et_function]) < 0) { // use func flag?