fix: do not print as arrow if binder_info is not the default one

This commit is contained in:
Leonardo de Moura 2020-07-15 10:00:39 -07:00
parent 4745519b54
commit fbf2d5d300

View file

@ -147,6 +147,10 @@ struct print_expr_fn {
print_child(app_arg(e));
}
static bool is_arrow(expr const & t) {
return lean::is_arrow(t) && binding_info(t) == binder_info::Default;
}
void print_arrow_body(expr const & a) {
if (is_atomic(a) || is_arrow(a))
return print(a);