fix(frontends/lean/elaborator): visit_app partial

This commit is contained in:
Daniel Selsam 2015-10-31 16:53:04 -07:00 committed by Leonardo de Moura
parent ab940a2001
commit ffc168d63a

View file

@ -684,7 +684,7 @@ expr elaborator::visit_app(expr const & e, constraint_seq & cs) {
binding_info(f_type).is_inst_implicit()) { binding_info(f_type).is_inst_implicit()) {
lean_assert(binding_info(f_type).is_strict_implicit() || !first); lean_assert(binding_info(f_type).is_strict_implicit() || !first);
expr const & d_type = binding_domain(f_type); expr const & d_type = binding_domain(f_type);
if (partial_expl || is_pi(whnf(d_type).first)) if (partial_expl && is_pi(whnf(d_type).first))
break; break;
tag g = f.get_tag(); tag g = f.get_tag();
bool is_strict = true; bool is_strict = true;