|
7 | 7 | | Note: a match type could not be fully reduced: |
8 | 8 | | |
9 | 9 | | trying to reduce M[B] |
10 | | - | failed since selector B |
| 10 | + | failed since selector B |
11 | 11 | | does not match case A => Int |
12 | 12 | | and cannot be shown to be disjoint from it either. |
13 | 13 | | Therefore, reduction cannot advance to the remaining case |
|
18 | 18 | -- Error: tests/neg/i12049.scala:14:23 --------------------------------------------------------------------------------- |
19 | 19 | 14 |val y3: String = ??? : Last[Int *: Int *: Boolean *: String *: EmptyTuple] // error |
20 | 20 | | ^ |
21 | | - | Match type reduction failed since selector EmptyTuple.type |
| 21 | + | Match type reduction failed since selector EmptyTuple.type |
22 | 22 | | matches none of the cases |
23 | 23 | | |
24 | 24 | | case _ *: _ *: t => Last[t] |
25 | 25 | | case t *: EmptyTuple => t |
26 | 26 | -- Error: tests/neg/i12049.scala:22:26 --------------------------------------------------------------------------------- |
27 | 27 | 22 |val z3: (A, B, A) = ??? : Reverse[(A, B, A)] // error |
28 | 28 | | ^ |
29 | | - | Match type reduction failed since selector A *: EmptyTuple.type |
| 29 | + | Match type reduction failed since selector A *: EmptyTuple.type |
30 | 30 | | matches none of the cases |
31 | 31 | | |
32 | 32 | | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
|
39 | 39 | | Note: a match type could not be fully reduced: |
40 | 40 | | |
41 | 41 | | trying to reduce M[B] |
42 | | - | failed since selector B |
| 42 | + | failed since selector B |
43 | 43 | | does not match case A => Int |
44 | 44 | | and cannot be shown to be disjoint from it either. |
45 | 45 | | Therefore, reduction cannot advance to the remaining case |
|
48 | 48 | -- Error: tests/neg/i12049.scala:25:26 --------------------------------------------------------------------------------- |
49 | 49 | 25 |val _ = summon[String =:= Last[Int *: Int *: Boolean *: String *: EmptyTuple]] // error |
50 | 50 | | ^ |
51 | | - | Match type reduction failed since selector EmptyTuple.type |
| 51 | + | Match type reduction failed since selector EmptyTuple.type |
52 | 52 | | matches none of the cases |
53 | 53 | | |
54 | 54 | | case _ *: _ *: t => Last[t] |
55 | 55 | | case t *: EmptyTuple => t |
56 | 56 | -- Error: tests/neg/i12049.scala:26:29 --------------------------------------------------------------------------------- |
57 | 57 | 26 |val _ = summon[(A, B, A) =:= Reverse[(A, B, A)]] // error |
58 | 58 | | ^ |
59 | | - | Match type reduction failed since selector A *: EmptyTuple.type |
| 59 | + | Match type reduction failed since selector A *: EmptyTuple.type |
60 | 60 | | matches none of the cases |
61 | 61 | | |
62 | 62 | | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
|
69 | 69 | | Note: a match type could not be fully reduced: |
70 | 70 | | |
71 | 71 | | trying to reduce M[B] |
72 | | - | failed since selector B |
| 72 | + | failed since selector B |
73 | 73 | | does not match case A => Int |
74 | 74 | | and cannot be shown to be disjoint from it either. |
75 | 75 | | Therefore, reduction cannot advance to the remaining case |
|
0 commit comments