fix(frontends/lean/pp): bug in notation matching procedure

This commit is contained in:
Leonardo de Moura 2014-10-19 10:48:41 -07:00
parent d7cc7cbd8c
commit 100b3abf1d

View file

@ -609,9 +609,7 @@ bool pretty_fn::match(expr const & p, expr const & e, buffer<optional<expr>> & a
return true;
} else if (is_placeholder(p)) {
return true;
} else if (is_constant(p)) {
if (!is_constant(e))
return false;
} else if (is_constant(p) && is_constant(e)) {
levels p_ls = const_levels(p);
levels e_ls = const_levels(p);
while (!is_nil(p_ls)) {