
  Syntax error!
  syntax_tests/data/parsing/recovery/pattern/polyvariant.res:2:15-17

  1 │ switch x {
  2 │ | #Rgb(r, g, b => ()
  3 │ | #Rgb(r, g, Color(a, b => ()
  4 │ | #Rgb(r, g, list{1, 2 => ()

  Did you forget a `)` here?


  Syntax error!
  syntax_tests/data/parsing/recovery/pattern/polyvariant.res:3:24-26

  1 │ switch x {
  2 │ | #Rgb(r, g, b => ()
  3 │ | #Rgb(r, g, Color(a, b => ()
  4 │ | #Rgb(r, g, list{1, 2 => ()
  5 │ }

  Did you forget a `)` here?


  Syntax error!
  syntax_tests/data/parsing/recovery/pattern/polyvariant.res:4:23-25

  2 │ | #Rgb(r, g, b => ()
  3 │ | #Rgb(r, g, Color(a, b => ()
  4 │ | #Rgb(r, g, list{1, 2 => ()
  5 │ }
  6 │ 

  Did you forget a `}` here?

;;match x with
  | `Rgb (r, g, b) -> ()
  | `Rgb (r, g, Color (a, b)) -> ()
  | `Rgb (r, g, 1::2::[]) -> ()
;;match x with | `a () -> () | `a () -> ()