From: fennecdjay Date: Wed, 4 Sep 2019 19:36:37 +0000 (+0200) Subject: :bug: check_exp_call1 does not return not bool X-Git-Tag: nightly~2232 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=4d7b0b9acf92838dc911a721c57c2af9f84a3c46;p=gwion.git :bug: check_exp_call1 does not return not bool --- diff --git a/src/parse/check.c b/src/parse/check.c index a3b0d31f..56585ad5 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -784,7 +784,7 @@ ANN Type check_exp_call1(const Env env, const Exp_Call *exp) { return func->def->base->ret_type; } function_alternative(env, exp->func->type, exp->args, exp_self(exp)->pos); - return GW_ERROR; + return NULL; } ANN static Type check_exp_binary(const Env env, const Exp_Binary* bin) {