]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix lambda arument emit_var
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 16:48:07 +0000 (18:48 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Mon, 13 Apr 2020 16:48:07 +0000 (18:48 +0200)
src/parse/check.c

index 18362f990536b62a6e82218463c701294b5ac6eb..a2567d35aab136b0e0e3f901e25d2bbc5b19b569 100644 (file)
@@ -395,7 +395,7 @@ ANN static m_bool func_match_inner(const Env env, const Exp e, const Type t,
         const Type owner = nspc_lookup_type1(t->e->owner->parent,
           insert_symbol(t->e->owner->name));
         const m_bool ret = check_lambda(env, owner, &e->d.exp_lambda, t->e->d.func->def);
-//        exp_setvar(e, 1);
+        exp_setvar(e, 1);
         return ret;
       }
       if(implicit)