summaryrefslogtreecommitdiff
path: root/testsuite/tests/basic-more/top_level_patterns.ml
blob: a253bfe5a0bc6690344c38e8a56f6610e7de71e3 (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