fix(frontends/lean/pp): bug in notation matching procedure
This commit is contained in:
parent
d7cc7cbd8c
commit
100b3abf1d
1 changed files with 1 additions and 3 deletions
|
@ -609,9 +609,7 @@ bool pretty_fn::match(expr const & p, expr const & e, buffer<optional<expr>> & a
|
||||||
return true;
|
return true;
|
||||||
} else if (is_placeholder(p)) {
|
} else if (is_placeholder(p)) {
|
||||||
return true;
|
return true;
|
||||||
} else if (is_constant(p)) {
|
} else if (is_constant(p) && is_constant(e)) {
|
||||||
if (!is_constant(e))
|
|
||||||
return false;
|
|
||||||
levels p_ls = const_levels(p);
|
levels p_ls = const_levels(p);
|
||||||
levels e_ls = const_levels(p);
|
levels e_ls = const_levels(p);
|
||||||
while (!is_nil(p_ls)) {
|
while (!is_nil(p_ls)) {
|
||||||
|
|
Loading…
Reference in a new issue