Debian Codegraph @

testsuite/tests/basic-more/morematch.compilers.reference

raw
1 File "morematch.ml", line 67, characters 2-5:
2 67 | | 4|5|7 -> 100
3 ^^^
4 Warning 12 [redundant-subpat]: this sub-pattern is unused.
5
6 File "morematch.ml", line 68, characters 2-3:
7 68 | | 7 | 8 -> 6
8 ^
9 Warning 12 [redundant-subpat]: this sub-pattern is unused.
10
11 File "morematch.ml", line 219, characters 33-47:
12 219 | let f = function (([]|[_]) as x)|(_::([] as x))|(_::_::x) -> x
13 ^^^^^^^^^^^^^^
14 Warning 12 [redundant-subpat]: this sub-pattern is unused.
15
16 File "morematch.ml", line 388, characters 2-15:
17 388 | | A,_,(100|103) -> 5
18 ^^^^^^^^^^^^^
19 Warning 11 [redundant-case]: this match case is unused.
20
21 File "morematch.ml", line 401, characters 2-20:
22 401 | | [],_,(100|103|104) -> 5
23 ^^^^^^^^^^^^^^^^^^
24 Warning 11 [redundant-case]: this match case is unused.
25
26 File "morematch.ml", line 402, characters 2-16:
27 402 | | [],_,(100|103) -> 6
28 ^^^^^^^^^^^^^^
29 Warning 11 [redundant-case]: this match case is unused.
30
31 File "morematch.ml", line 403, characters 2-29:
32 403 | | [],_,(1000|1001|1002|20000) -> 7
33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 Warning 11 [redundant-case]: this match case is unused.
35
36 File "morematch.ml", line 413, characters 5-12:
37 413 | | (100|103|101) -> 2
38 ^^^^^^^
39 Warning 12 [redundant-subpat]: this sub-pattern is unused.
40
41 File "morematch.ml", line 432, characters 43-44:
42 432 | | (J,J,((C|D) as x |E x|F (_,x))) | (J,_,((C|J) as x)) -> autre (x,x,x)
43 ^
44 Warning 12 [redundant-subpat]: this sub-pattern is unused.
45
46 File "morematch.ml", line 455, characters 7-8:
47 455 | | _,_,(X|U _) -> 8
48 ^
49 Warning 12 [redundant-subpat]: this sub-pattern is unused.
50
51 File "morematch.ml", line 456, characters 2-7:
52 456 | | _,_,Y -> 5
53 ^^^^^
54 Warning 11 [redundant-case]: this match case is unused.
55
56 File "morematch.ml", lines 1050-1053, characters 8-10:
57 1050 | ........function
58 1051 | | A (`A|`C) -> 0
59 1052 | | B (`B,`D) -> 1
60 1053 | | C -> 2
61 Warning 8 [partial-match]: this pattern-matching is not exhaustive.
62 Here is an example of a case that is not matched: A `D
63
64 File "morematch.ml", line 1084, characters 5-51:
65 1084 | | _, _, _, _, _, A, _, _, _, _, B, _, _, _, _, _ -> "11"
66 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 Warning 11 [redundant-case]: this match case is unused.
68
69 File "morematch.ml", line 1086, characters 5-51:
70 1086 | | _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ -> "13"
71 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72 Warning 11 [redundant-case]: this match case is unused.