File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1591,7 +1591,14 @@ and print_label_declaration ~state (ld : Parsetree.label_declaration) cmt_tbl =
1591
1591
])
1592
1592
1593
1593
and print_typ_expr ~(state : State.t ) (typ_expr : Parsetree.core_type ) cmt_tbl =
1594
- let parent_has_attrs = Ast_uncurried. core_type_is_uncurried_fun typ_expr && not (typ_expr.ptyp_attributes = [] ) in
1594
+ let parent_has_attrs =
1595
+ let attrs = ParsetreeViewer. filter_parsing_attrs typ_expr.ptyp_attributes in
1596
+ if Ast_uncurried. core_type_is_uncurried_fun typ_expr && not (attrs = [] )
1597
+ then
1598
+ let arity, _ = Ast_uncurried. core_type_extract_uncurried_fun typ_expr in
1599
+ arity > 0
1600
+ else false
1601
+ in
1595
1602
let print_arrow ?(arity = max_int) typ_expr =
1596
1603
let attrs_before, args, return_type =
1597
1604
ParsetreeViewer. arrow_type ~arity typ_expr
You can’t perform that action at this time.
0 commit comments