Skip to content

Commit 7c0e030

Browse files
committed
add arity=1
1 parent 92db093 commit 7c0e030

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/syntax/src/jsx_v4.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,11 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
12521252
[(Nolabel, Exp.ident {txt = Lident "props"; loc})]))
12531253
in
12541254

1255+
let wrapper_expr =
1256+
Ast_uncurried.uncurried_fun ~loc:wrapper_expr.pexp_loc ~arity:1
1257+
wrapper_expr
1258+
in
1259+
12551260
let internal_expression =
12561261
Exp.let_ Nonrecursive
12571262
[Vb.mk (Pat.var {txt = full_module_name; loc}) wrapper_expr]

0 commit comments

Comments
 (0)