| 1 |
File "pr7620_bad.ml", line 10, characters 17-19: |
| 2 |
10 | (function `A | `B -> () : 'a) (`A : [`A]); |
| 3 |
^^ |
| 4 |
Error: This pattern matches values of type [? `B ] |
| 5 |
but a pattern was expected which matches values of type [ `A ] |
| 6 |
The second variant type does not allow tag(s) `B |