Skip to content

Commit d1d40c2

Browse files
committed
Clean up arity in derive projector.
The arity is later overridden anyway, but being explicit can help cleaning up later on if `Function$` is removed entirely.
1 parent ca652d8 commit d1d40c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/frontend/ast_derive_projector.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ let init () =
4646
->
4747
let txt = "param" in
4848
Ast_comb.single_non_rec_value ?attrs:gentype_attrs pld_name
49-
(Ast_compatible.fun_ ~arity:None
49+
(Ast_compatible.fun_ ~arity:(Some 1)
5050
(Pat.constraint_ (Pat.var {txt; loc}) core_type)
5151
(Exp.field
5252
(Exp.ident {txt = Lident txt; loc})
@@ -108,7 +108,7 @@ let init () =
108108
annotate_type
109109
in
110110
Ext_list.fold_right vars exp (fun var b ->
111-
Ast_compatible.fun_ ~arity:None
111+
Ast_compatible.fun_ ~arity:(Some 1)
112112
(Pat.var {loc; txt = var})
113113
b)
114114
|> handle_uncurried_accessor_tranform ~loc ~arity))

0 commit comments

Comments
 (0)