| 1 |
type t = A | B |
| 2 |
type u = C of t |
| 3 |
Line 1, characters 18-54: |
| 4 |
1 | let print_t out = function A -> Format.fprintf out "A";; |
| 5 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 6 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 7 |
Here is an example of a case that is not matched: B |
| 8 |
|
| 9 |
val print_t : Format.formatter -> t -> unit = <fun> |
| 10 |
- : t = |
| 11 |
<printer print_t raised an exception: File "//toplevel//", line 1, characters 18-23: Pattern matching failed> |
| 12 |
- : u = |
| 13 |
C |
| 14 |
<printer print_t raised an exception: File "//toplevel//", line 1, characters 18-23: Pattern matching failed> |
| 15 |
|