fix(frontends/lean/pp): bug when pretty printing foldr/foldl notation

This commit is contained in:
Leonardo de Moura 2016-08-16 10:34:04 -07:00
parent 100a15cb0d
commit b0abea78b6

View file

@ -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))