File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1831,6 +1831,7 @@ and walk_row_field (row_field : Parsetree.row_field) t comments =
1831
1831
| Rinherit _ -> ()
1832
1832
1833
1833
and walk_core_type typ t comments =
1834
+ let typ = Ast_uncurried. core_type_remove_function_dollar typ in
1834
1835
match typ.Parsetree. ptyp_desc with
1835
1836
| _ when comments = [] -> ()
1836
1837
| Ptyp_tuple typexprs ->
@@ -1864,9 +1865,6 @@ and walk_core_type typ t comments =
1864
1865
attach t.trailing typexpr.ptyp_loc after_typ
1865
1866
| Ptyp_variant (row_fields , _ , _ ) ->
1866
1867
walk_list (row_fields |> List. map (fun rf -> RowField rf)) t comments
1867
- | Ptyp_constr
1868
- ({txt = Lident " function$" }, [({ptyp_desc = Ptyp_arrow _} as desc)]) ->
1869
- walk_core_type desc t comments
1870
1868
| Ptyp_constr (longident , typexprs ) ->
1871
1869
let before_longident, _afterLongident =
1872
1870
partition_leading_trailing comments longident.loc
You can’t perform that action at this time.
0 commit comments