From e5c6182189890aefa30dd29abafe59d18834b252 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 21 Jun 2021 00:04:39 +0200 Subject: [PATCH] :fire: Remove lambda specific --- src/parse/check.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.43.0