Skip to content

Commit 65b1c68

Browse files
committed
merge conflict
1 parent 4f961ab commit 65b1c68

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

compiler/syntax/src/jsx_v4.ml

+1-4
Original file line numberDiff line numberDiff line change
@@ -1267,10 +1267,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
12671267
[(Nolabel, Exp.ident {txt = Lident "props"; loc})]))
12681268
in
12691269

1270-
let wrapper_expr =
1271-
Ast_uncurried.uncurried_fun ~loc:wrapper_expr.pexp_loc ~arity:1
1272-
wrapper_expr
1273-
in
1270+
let wrapper_expr = Ast_uncurried.uncurried_fun ~arity:1 wrapper_expr in
12741271

12751272
let internal_expression =
12761273
Exp.let_ Nonrecursive

tests/build_tests/super_errors/expected/react_component_with_props.res.expected

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
We've found a bug for you!
3-
/.../fixtures/react_component_with_props.res:4:5-13:10
3+
/.../fixtures/react_component_with_props.res:3:31-13:10
44

5+
1 │ module V4C7 = {
56
2 │ @react.componentWithProps
6-
3 │ let make = React.forwardRef((
7-
4 │ ~className=?,
8-
5 │  ~children,
7+
3 │ let make = React.forwardRef((
8+
4 │  ~className=?,
99
. │ ...
1010
12 │  children
1111
13 │  </div>

0 commit comments

Comments
 (0)