(* TEST expect; *) match [] with x -> (fun x -> x);; [%%expect{| - : 'a -> 'a = |}];; match [] with x -> (fun x -> x) | _ -> .;; [%%expect{| - : 'a -> 'a = |}];;