fix(frontends/lean/pp): bug when pretty printing foldr/foldl notation
This commit is contained in:
parent
100a15cb0d
commit
b0abea78b6
1 changed files with 1 additions and 1 deletions
|
|
@ -1367,7 +1367,7 @@ auto pretty_fn::pp_notation(notation_entry const & entry, buffer<optional<expr>>
|
|||
e = *new_e;
|
||||
matched_once = true;
|
||||
}
|
||||
if (!matched_once)
|
||||
if (!matched_once && ini)
|
||||
return optional<result>();
|
||||
if (ini) {
|
||||
if (!match(*ini, e, args))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue