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 823a6de commit 8fd1296Copy full SHA for 8fd1296
compiler/syntax/src/jsx_v4.ml
@@ -811,7 +811,6 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
811
(Some props_record_type, binding, new_binding))
812
else if Jsx_common.has_attr_on_binding Jsx_common.has_attr_with_props binding
813
then
814
- let binding_loc = binding.pvb_loc in
815
let modified_binding =
816
{
817
binding with
@@ -907,7 +906,7 @@ let map_binding ~config ~empty_loc ~pstr_loc ~file_name ~rec_flag binding =
907
906
| Recursive -> None
908
| Nonrecursive ->
909
Some
910
- (make_new_binding ~loc:binding_loc ~full_module_name modified_binding)
+ (make_new_binding ~loc:empty_loc ~full_module_name modified_binding)
911
in
912
let binding_expr =
913
0 commit comments