We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca652d8 commit d1d40c2Copy full SHA for d1d40c2
compiler/frontend/ast_derive_projector.ml
@@ -46,7 +46,7 @@ let init () =
46
->
47
let txt = "param" in
48
Ast_comb.single_non_rec_value ?attrs:gentype_attrs pld_name
49
- (Ast_compatible.fun_ ~arity:None
+ (Ast_compatible.fun_ ~arity:(Some 1)
50
(Pat.constraint_ (Pat.var {txt; loc}) core_type)
51
(Exp.field
52
(Exp.ident {txt = Lident txt; loc})
@@ -108,7 +108,7 @@ let init () =
108
annotate_type
109
in
110
Ext_list.fold_right vars exp (fun var b ->
111
- Ast_compatible.fun_ ~arity:None
+ Ast_compatible.fun_ ~arity:(Some 1)
112
(Pat.var {loc; txt = var})
113
b)
114
|> handle_uncurried_accessor_tranform ~loc ~arity))
0 commit comments