CHECK_OB(check_exp(env, stmt->val));
if(stmt->val->exp_type == ae_exp_lambda) {
const loc_t loc = stmt->val->d.exp_lambda.def->base->pos;
- env_warn(env, loc, "Partial application not used");
+ env_warn(env, loc, _("Partial application not used"));
}
}
return stmt->val ? check_exp(env, stmt->val) ? 1 : -1 : 1;
if(f->next) {
const Func next = partial_match(env, f->next, args, loc);
if(next) {
- gwerr_basic("can't resolve ambiguity", "in this partial application", "use typed holes: _ $ type", env->name, loc, 0);
- gw_err("\nthose functions could match:\n");
+ gwerr_basic(_("can't resolve ambiguity"), _("in this partial application"), _("use typed holes: _ $ type"), env->name, loc, 0);
+ gw_err(_("\nthose functions could match:\n"));
print_signature(f);
ambiguity(env, next, args, loc);
env->context->error = true;
call->args = e;
return partial_type(env, call);
}
- ERR_O(call->func->pos, "not match found for partial application");
+ ERR_O(call->func->pos, _("no match found for partial application"));
}
Func_Base *const base = partial_base(env, f->def->base, call->args, call->func->pos);
const Stmt code = partial_code(env, call->func, call->args);