fix(kernel/type_checker): error message

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-07-17 19:38:20 +01:00
parent 9289717169
commit 120d3b5c1a

View file

@ -275,7 +275,7 @@ expr type_checker::infer_pi(expr const & _e, bool infer_only) {
} }
expr type_checker::infer_app(expr const & e, bool infer_only) { expr type_checker::infer_app(expr const & e, bool infer_only) {
expr f_type = ensure_pi_core(infer_type_core(app_fn(e), infer_only), app_fn(e)); expr f_type = ensure_pi_core(infer_type_core(app_fn(e), infer_only), e);
if (!infer_only) { if (!infer_only) {
expr a_type = infer_type_core(app_arg(e), infer_only); expr a_type = infer_type_core(app_arg(e), infer_only);
app_delayed_justification jst(e, f_type, a_type); app_delayed_justification jst(e, f_type, a_type);