Skip to content

Commit 46fee60

Browse files
committed
[JSX] Fix unused patterns warnings that causes build failure
1 parent dff9315 commit 46fee60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jscomp/syntax/reactjs_jsx_ppx.cppo.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ let jsxMapper () =
534534
| Ptyp_constr({txt}, _innerTypeArgs) -> String.concat "." (Longident.flatten txt) ^ "(...)"
535535
| _ -> "...")
536536
in
537-
Location.prerr_warning pattern.ppat_loc
538-
(Preprocessor
537+
Location.prerr_warning pattern.ppat_loc
538+
(Preprocessor
539539
(Printf.sprintf "ReasonReact: optional argument annotations must have explicit `option`. Did you mean `option(%s)=?`?" currentType)))
540540
| _ -> ()) in
541541
let alias = (match pattern with
@@ -716,7 +716,7 @@ let jsxMapper () =
716716
} -> ((fun a -> a), false, unerasableIgnoreExp expression)
717717
(* let make = (prop) => ... *)
718718
| {
719-
pexp_desc = Pexp_fun (nolabel, default, pattern, internalExpression)
719+
pexp_desc = Pexp_fun (_nolabel, _default, _pattern, _internalExpression)
720720
} -> raise (Invalid_argument "if your component doesn't take any props use () or _ instead of a name as your argument")
721721
(* let make = {let foo = bar in (~prop) => ...} *)
722722
| {

0 commit comments

Comments
 (0)