| 1 |
Or-pattern under local open. |
| 2 |
|
| 3 |
$ bash ../test.sh <<'EOF' |
| 4 |
> module M = struct exception E end |
| 5 |
> let _ = |
| 6 |
> match () with |
| 7 |
> | () -> () |
| 8 |
> | M.(exception (E | Exit)) -> () |
| 9 |
> EOF |
| 10 |
module M = struct |
| 11 |
exception E |
| 12 |
end |
| 13 |
|
| 14 |
let _ = |
| 15 |
match () with |
| 16 |
| M.((exception ((E | Exit) as ___bisect_matched_value___))) -> |
| 17 |
(match[@ocaml.warning "-4-8-9-11-26-27-28-33"] |
| 18 |
___bisect_matched_value___ |
| 19 |
with |
| 20 |
| M.(E) -> |
| 21 |
___bisect_visit___ 1; |
| 22 |
() |
| 23 |
| M.(Exit) -> |
| 24 |
___bisect_visit___ 2; |
| 25 |
() |
| 26 |
| _ -> ()); |
| 27 |
() |
| 28 |
| () -> |
| 29 |
___bisect_visit___ 0; |
| 30 |
() |