From feff7a6a7c60acc70bc7217f549af9a603de705d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Wed, 16 Sep 2020 01:44:50 +0200 Subject: [PATCH] :art: Resolve senseless check --- src/parse/check.c | 2 -- 1 file changed, 2 deletions(-) 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? -- 2.43.0