
  Syntax error!
  syntax_tests/data/parsing/errors/expressions/ifLet.res:1:1-3:1

  1 │ if let Some(x) = result {
  2 │   Js.log("The sky is blue")
  3 │ }
  4 │ 
  5 │ if let Error(x) = result {

  If-let is currently highly experimental. Use a regular `switch` with pattern matching instead:

switch result {
| Some(x) => Js.log("The sky is blue")
| _ => ()
}


  Syntax error!
  syntax_tests/data/parsing/errors/expressions/ifLet.res:7:8-11:1

   5 │ if let Error(x) = result {
   6 │   Js.log("The sky is red")
   7 │ } else if let Ok(y) = result {
   8 │   Js.log("The sky is blue")
   9 │ } else {
  10 │   ()
  11 │ }
  12 │ 

  If-let is currently highly experimental. Use a regular `switch` with pattern matching instead:

switch result {
| Ok(y) => Js.log("The sky is blue")
| _ => ()
}

;;((match result with | Some x -> Js.log {js|The sky is blue|js} | _ -> ())
  [@res.iflet ][@warning "-4"])
;;((match result with
    | Error x -> Js.log {js|The sky is red|js}
    | _ ->
        (((match result with
           | Ok y -> Js.log {js|The sky is blue|js}
           | _ -> ()))
        [@res.iflet ][@warning "-4"]))[@res.iflet ][@warning "-4"])