1466
1466
/* Build lambda x: exp->right (exp->left x) as a closure */
1467
1467
char *var = strdup("@0");
1471
1472
struct term *ident = make_term(A_IDENT, ref(info));
1474
1475
struct term *app = make_app_term(ref(exp->left), ident, ref(info));
1475
1476
app->type = ref(app->left->type->img);
1476
1477
app = make_app_term(ref(exp->right), app, ref(info));
1481
1482
if (!type_equal(func->type, exp->type)) {
1482
1483
char *f = type_string(func->type);