| 1 |
File "robustmatch.ml", lines 33-37, characters 6-23: |
| 2 |
33 | ......match t1, t2, x with |
| 3 |
34 | | AB, AB, A -> () |
| 4 |
35 | | MAB, _, A -> () |
| 5 |
36 | | _, AB, B -> () |
| 6 |
37 | | _, MAB, B -> () |
| 7 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 8 |
Here is an example of a case that is not matched: (AB, MAB, A) |
| 9 |
|
| 10 |
File "robustmatch.ml", lines 43-47, characters 4-21: |
| 11 |
43 | ....match t1, t2, x with |
| 12 |
44 | | AB, AB, A -> () |
| 13 |
45 | | MAB, _, A -> () |
| 14 |
46 | | _, AB, B -> () |
| 15 |
47 | | _, MAB, B -> () |
| 16 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 17 |
Here is an example of a case that is not matched: (AB, MAB, A) |
| 18 |
|
| 19 |
File "robustmatch.ml", lines 54-56, characters 4-27: |
| 20 |
54 | ....match r1, r2, a with |
| 21 |
55 | | R1, _, 0 -> () |
| 22 |
56 | | _, R2, "coucou" -> () |
| 23 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 24 |
Here is an example of a case that is not matched: (R1, R1, 1) |
| 25 |
|
| 26 |
File "robustmatch.ml", lines 64-66, characters 4-27: |
| 27 |
64 | ....match r1, r2, a with |
| 28 |
65 | | R1, _, A -> () |
| 29 |
66 | | _, R2, "coucou" -> () |
| 30 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 31 |
Here is an example of a case that is not matched: (R1, R1, (B|C)) |
| 32 |
|
| 33 |
File "robustmatch.ml", lines 69-71, characters 4-20: |
| 34 |
69 | ....match r1, r2, a with |
| 35 |
70 | | _, R2, "coucou" -> () |
| 36 |
71 | | R1, _, A -> () |
| 37 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 38 |
Here is an example of a case that is not matched: (R1, R1, (B|C)) |
| 39 |
|
| 40 |
File "robustmatch.ml", lines 74-76, characters 4-20: |
| 41 |
74 | ....match r1, r2, a with |
| 42 |
75 | | _, R2, "coucou" -> () |
| 43 |
76 | | R1, _, _ -> () |
| 44 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 45 |
Here is an example of a case that is not matched: (R2, R2, "") |
| 46 |
|
| 47 |
File "robustmatch.ml", lines 85-87, characters 4-20: |
| 48 |
85 | ....match r1, r2, a with |
| 49 |
86 | | R1, _, A -> () |
| 50 |
87 | | _, R2, X -> () |
| 51 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 52 |
Here is an example of a case that is not matched: (R1, R1, (B|C)) |
| 53 |
|
| 54 |
File "robustmatch.ml", lines 90-93, characters 4-20: |
| 55 |
90 | ....match r1, r2, a with |
| 56 |
91 | | R1, _, A -> () |
| 57 |
92 | | _, R2, X -> () |
| 58 |
93 | | R1, _, _ -> () |
| 59 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 60 |
Here is an example of a case that is not matched: (R2, R2, (Y|Z)) |
| 61 |
|
| 62 |
File "robustmatch.ml", lines 96-98, characters 4-20: |
| 63 |
96 | ....match r1, r2, a with |
| 64 |
97 | | R1, _, _ -> () |
| 65 |
98 | | _, R2, X -> () |
| 66 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 67 |
Here is an example of a case that is not matched: (R2, R2, (Y|Z)) |
| 68 |
|
| 69 |
File "robustmatch.ml", lines 107-109, characters 4-20: |
| 70 |
107 | ....match r1, r2, a with |
| 71 |
108 | | R1, _, A -> () |
| 72 |
109 | | _, R2, X -> () |
| 73 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 74 |
Here is an example of a case that is not matched: (R1, R1, (B|C)) |
| 75 |
|
| 76 |
File "robustmatch.ml", lines 129-131, characters 4-20: |
| 77 |
129 | ....match r1, r2, a with |
| 78 |
130 | | R1, _, A -> () |
| 79 |
131 | | _, R2, X -> () |
| 80 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 81 |
Here is an example of a case that is not matched: (R1, R1, B) |
| 82 |
|
| 83 |
File "robustmatch.ml", lines 151-153, characters 4-20: |
| 84 |
151 | ....match r1, r2, a with |
| 85 |
152 | | R1, _, A -> () |
| 86 |
153 | | _, R2, X -> () |
| 87 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 88 |
Here is an example of a case that is not matched: (R1, R1, B) |
| 89 |
|
| 90 |
File "robustmatch.ml", lines 156-159, characters 4-20: |
| 91 |
156 | ....match r1, r2, a with |
| 92 |
157 | | R1, _, A -> () |
| 93 |
158 | | _, R2, X -> () |
| 94 |
159 | | R1, _, _ -> () |
| 95 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 96 |
Here is an example of a case that is not matched: (R2, R2, Y) |
| 97 |
|
| 98 |
File "robustmatch.ml", lines 162-164, characters 4-20: |
| 99 |
162 | ....match r1, r2, a with |
| 100 |
163 | | R1, _, _ -> () |
| 101 |
164 | | _, R2, X -> () |
| 102 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 103 |
Here is an example of a case that is not matched: (R2, R2, Y) |
| 104 |
|
| 105 |
File "robustmatch.ml", lines 167-169, characters 4-20: |
| 106 |
167 | ....match r1, r2, a with |
| 107 |
168 | | R1, _, C -> () |
| 108 |
169 | | _, R2, Y -> () |
| 109 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 110 |
Here is an example of a case that is not matched: (R1, R1, A) |
| 111 |
|
| 112 |
File "robustmatch.ml", lines 176-179, characters 4-20: |
| 113 |
176 | ....match r1, r2, a with |
| 114 |
177 | | _, R1, 0 -> () |
| 115 |
178 | | R2, _, [||] -> () |
| 116 |
179 | | _, R1, 1 -> () |
| 117 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 118 |
Here is an example of a case that is not matched: (R2, R2, [| _ |]) |
| 119 |
|
| 120 |
File "robustmatch.ml", lines 182-184, characters 4-23: |
| 121 |
182 | ....match r1, r2, a with |
| 122 |
183 | | R1, _, _ -> () |
| 123 |
184 | | _, R2, [||] -> () |
| 124 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 125 |
Here is an example of a case that is not matched: (R2, R2, [| _ |]) |
| 126 |
|
| 127 |
File "robustmatch.ml", lines 187-190, characters 4-20: |
| 128 |
187 | ....match r1, r2, a with |
| 129 |
188 | | _, R2, [||] -> () |
| 130 |
189 | | R1, _, 0 -> () |
| 131 |
190 | | R1, _, _ -> () |
| 132 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 133 |
Here is an example of a case that is not matched: (R2, R2, [| _ |]) |
| 134 |
|
| 135 |
File "robustmatch.ml", lines 200-203, characters 4-19: |
| 136 |
200 | ....match r1, r2, a with |
| 137 |
201 | | _, R2, [||] -> () |
| 138 |
202 | | R1, _, 0 -> () |
| 139 |
203 | | _, _, _ -> () |
| 140 |
Warning 4 [fragile-match]: this pattern-matching is fragile. |
| 141 |
It will remain exhaustive when constructors are added to type repr. |
| 142 |
|
| 143 |
File "robustmatch.ml", lines 210-212, characters 4-27: |
| 144 |
210 | ....match r1, r2, a with |
| 145 |
211 | | R1, _, 'c' -> () |
| 146 |
212 | | _, R2, "coucou" -> () |
| 147 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 148 |
Here is an example of a case that is not matched: (R1, R1, 'a') |
| 149 |
|
| 150 |
File "robustmatch.ml", lines 219-221, characters 4-27: |
| 151 |
219 | ....match r1, r2, a with |
| 152 |
220 | | R1, _, `A -> () |
| 153 |
221 | | _, R2, "coucou" -> () |
| 154 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 155 |
Here is an example of a case that is not matched: (R1, R1, `B) |
| 156 |
|
| 157 |
File "robustmatch.ml", lines 228-230, characters 4-37: |
| 158 |
228 | ....match r1, r2, a with |
| 159 |
229 | | R1, _, (3, "") -> () |
| 160 |
230 | | _, R2, (1, "coucou", 'a') -> () |
| 161 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 162 |
Here is an example of a case that is not matched: (R1, R1, (3, "*")) |
| 163 |
|
| 164 |
File "robustmatch.ml", lines 239-241, characters 4-51: |
| 165 |
239 | ....match r1, r2, a with |
| 166 |
240 | | R1, _, { x = 3; y = "" } -> () |
| 167 |
241 | | _, R2, { a = 1; b = "coucou"; c = 'a' } -> () |
| 168 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 169 |
Here is an example of a case that is not matched: (R1, R1, {x=3; y="*"}) |
| 170 |
|
| 171 |
File "robustmatch.ml", lines 244-246, characters 4-36: |
| 172 |
244 | ....match r1, r2, a with |
| 173 |
245 | | R2, _, { a = 1; b = "coucou"; c = 'a' } -> () |
| 174 |
246 | | _, R1, { x = 3; y = "" } -> () |
| 175 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 176 |
Here is an example of a case that is not matched: |
| 177 |
(R2, R2, {a=1; b="coucou"; c='b'}) |
| 178 |
|
| 179 |
File "robustmatch.ml", lines 253-255, characters 4-20: |
| 180 |
253 | ....match r1, r2, a with |
| 181 |
254 | | R1, _, (3, "") -> () |
| 182 |
255 | | _, R2, 1 -> () |
| 183 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 184 |
Here is an example of a case that is not matched: (R1, R1, (3, "*")) |
| 185 |
|
| 186 |
File "robustmatch.ml", lines 263-265, characters 4-20: |
| 187 |
263 | ....match r1, r2, a with |
| 188 |
264 | | R1, _, { x = 3; y = "" } -> () |
| 189 |
265 | | _, R2, 1 -> () |
| 190 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 191 |
Here is an example of a case that is not matched: (R1, R1, {x=3; y="*"}) |
| 192 |
|
| 193 |
File "robustmatch.ml", lines 272-274, characters 4-20: |
| 194 |
272 | ....match r1, r2, a with |
| 195 |
273 | | R1, _, lazy 1 -> () |
| 196 |
274 | | _, R2, 1 -> () |
| 197 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 198 |
Here is an example of a case that is not matched: (R1, R1, lazy 0) |
| 199 |
|
| 200 |
File "robustmatch.ml", lines 281-284, characters 4-24: |
| 201 |
281 | ....match r1, r2, a with |
| 202 |
282 | | R1, _, () -> () |
| 203 |
283 | | _, R2, "coucou" -> () |
| 204 |
284 | | _, R2, "foo" -> () |
| 205 |
Warning 8 [partial-match]: this pattern-matching is not exhaustive. |
| 206 |
Here is an example of a case that is not matched: (R2, R2, "") |