| 1 |
Or-pattern instrumentation does not prevent row type generalization. |
| 2 |
|
| 3 |
$ bash ../test.sh <<'EOF' |
| 4 |
> type t = [ `A | `B ] |
| 5 |
> module M : |
| 6 |
> sig |
| 7 |
> val f : [< t ] -> unit |
| 8 |
> end = |
| 9 |
> struct |
| 10 |
> let f = function |
| 11 |
> | `A | `B -> () |
| 12 |
> end |
| 13 |
> EOF |
| 14 |
type t = [ `A | `B ] |
| 15 |
|
| 16 |
module M : sig |
| 17 |
val f : [< t ] -> unit |
| 18 |
end = struct |
| 19 |
let f = function |
| 20 |
| (`A | `B) as ___bisect_matched_value___ -> |
| 21 |
(match[@ocaml.warning "-4-8-9-11-26-27-28-33"] |
| 22 |
___bisect_matched_value___ |
| 23 |
with |
| 24 |
| `A -> |
| 25 |
___bisect_visit___ 0; |
| 26 |
() |
| 27 |
| `B -> |
| 28 |
___bisect_visit___ 1; |
| 29 |
() |
| 30 |
| _ -> ()); |
| 31 |
() |
| 32 |
end |