summaryrefslogtreecommitdiff
path: root/testsuite/tests/match-exception/identifier_sharing.ml
blob: 9df7c5e0ed946e3298d577377d98cbbad38a0cb5 (plain)
1
2
3
4
5
6
7
8
(* TEST *)

exception String of string

let _ =
  match "foo" with
  | str | exception (String str) -> print_endline str
  | exception _ -> print_endline "unexpected exception!"