From 4d7b0b9acf92838dc911a721c57c2af9f84a3c46 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 4 Sep 2019 21:36:37 +0200 Subject: [PATCH] :bug: check_exp_call1 does not return not bool --- src/parse/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.43.0