-Subproject commit 27e08ede9f3da51fcea1a54c599a019a64759ec1
+Subproject commit 36d83348fe027cd0c5bb6a388f9582d80914c7cc
static OP_CHECK(opck_func_call) {
Exp_Binary *bin = (Exp_Binary *)data;
Exp_Call call = {.func = bin->rhs, .args = bin->lhs};
- call.allow_curry = true;
Exp e = exp_self(bin);
e->exp_type = ae_exp_call;
memcpy(&e->d.exp_call, &call, sizeof(Exp_Call));
self->d.exp_call.func = func;
self->d.exp_call.args = args;
self->d.exp_call.tmpl = NULL;
- self->d.exp_call.allow_curry = false;
self->exp_type = ae_exp_call;
CHECK_BN(traverse_exp(env, self));
return self->type;
}
ANN static Type check_exp_call(const Env env, Exp_Call *exp) {
- if (exp->allow_curry && curried(env, exp->args))
+ if (curried(env, exp->args))
return env->gwion->type[et_curry];
if (exp->tmpl) {
DECL_BO(const m_bool, ret, = func_check(env, exp));