From: Jérémie Astor Date: Sun, 20 Jun 2021 22:04:39 +0000 (+0200) Subject: :fire: Remove lambda specific X-Git-Tag: nightly~573 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e5c6182189890aefa30dd29abafe59d18834b252;p=gwion.git :fire: Remove lambda specific --- diff --git a/src/parse/check.c b/src/parse/check.c index fc4dc3b1..f1404ff4 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -468,16 +468,18 @@ ANN static m_bool func_match_inner(const Env env, const Exp e, const Type t, const m_bool specific) { const m_bool match = (specific ? e->type == t : isa(e->type, t) > 0); if (!match) { +/* if (e->type == env->gwion->type[et_lambda] && is_fptr(env->gwion, t)) { exp_setvar(e, 1); return check_lambda(env, t, &e->d.exp_lambda); } +*/ if (implicit) { const m_bool ret = check_implicit(env, e, t); if (ret == GW_OK) return ret; } } - return match ? 1 : -1; + return match ? GW_OK : GW_ERROR; } ANN2(1, 2)