summaryrefslogtreecommitdiff
path: root/testsuite/tests/basic-more/top_level_patterns.ml
blob: aca641fc4f04ad9006e55ea3868a385fecf66582 (plain)
1
2
3
4
5
6
7
8
9
10
11
(* TEST
   include testing
*)

type t =
  | A of (int * int * int)
  | B of int * int

let (A (a, _, b) | B (b, a)) = A (1, 2, 3)

let () = print_int a; print_int b