fix: do not print as arrow if binder_info is not the default one
This commit is contained in:
parent
4745519b54
commit
fbf2d5d300
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue