diff --git a/src/frontends/lean/pp.cpp b/src/frontends/lean/pp.cpp index 9d0fe1b326..152a17019b 100644 --- a/src/frontends/lean/pp.cpp +++ b/src/frontends/lean/pp.cpp @@ -1367,7 +1367,7 @@ auto pretty_fn::pp_notation(notation_entry const & entry, buffer> e = *new_e; matched_once = true; } - if (!matched_once) + if (!matched_once && ini) return optional(); if (ini) { if (!match(*ini, e, args))