|
15 | 15 | | case B => String
|
16 | 16 | |
|
17 | 17 | | longer explanation available when compiling with `-explain`
|
18 |
| --- Error: tests/neg/i12049.scala:14:23 --------------------------------------------------------------------------------- |
| 18 | +-- [E007] Type Mismatch Error: tests/neg/i12049.scala:14:17 ------------------------------------------------------------ |
19 | 19 | 14 |val y3: String = ??? : Last[Int *: Int *: Boolean *: String *: EmptyTuple] // error
|
20 |
| - | ^ |
21 |
| - | Match type reduction failed since selector EmptyTuple |
22 |
| - | matches none of the cases |
| 20 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 21 | + | Found: Last[EmptyTuple] |
| 22 | + | Required: String |
23 | 23 | |
|
24 |
| - | case _ *: _ *: t => Last[t] |
25 |
| - | case t *: EmptyTuple => t |
26 |
| --- Error: tests/neg/i12049.scala:22:26 --------------------------------------------------------------------------------- |
| 24 | + | Note: a match type could not be fully reduced: |
| 25 | + | |
| 26 | + | trying to reduce Last[EmptyTuple] |
| 27 | + | failed since selector EmptyTuple |
| 28 | + | matches none of the cases |
| 29 | + | |
| 30 | + | case _ *: _ *: t => Last[t] |
| 31 | + | case t *: EmptyTuple => t |
| 32 | + | |
| 33 | + | longer explanation available when compiling with `-explain` |
| 34 | +-- [E007] Type Mismatch Error: tests/neg/i12049.scala:22:20 ------------------------------------------------------------ |
27 | 35 | 22 |val z3: (A, B, A) = ??? : Reverse[(A, B, A)] // error
|
28 |
| - | ^ |
29 |
| - | Match type reduction failed since selector A *: EmptyTuple.type |
30 |
| - | matches none of the cases |
| 36 | + | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 37 | + | Found: Tuple.Concat[Reverse[A *: EmptyTuple.type], (B, A)] |
| 38 | + | Required: (A, B, A) |
| 39 | + | |
| 40 | + | Note: a match type could not be fully reduced: |
| 41 | + | |
| 42 | + | trying to reduce Tuple.Concat[Reverse[A *: EmptyTuple.type], (B, A)] |
| 43 | + | trying to reduce Reverse[A *: EmptyTuple.type] |
| 44 | + | failed since selector A *: EmptyTuple.type |
| 45 | + | matches none of the cases |
| 46 | + | |
| 47 | + | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
| 48 | + | case EmptyTuple => EmptyTuple |
| 49 | + | trying to reduce Reverse[A *: EmptyTuple.type] |
| 50 | + | failed since selector A *: EmptyTuple.type |
| 51 | + | matches none of the cases |
31 | 52 | |
|
32 |
| - | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
33 |
| - | case EmptyTuple => EmptyTuple |
| 53 | + | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
| 54 | + | case EmptyTuple => EmptyTuple |
| 55 | + | |
| 56 | + | longer explanation available when compiling with `-explain` |
34 | 57 | -- [E172] Type Error: tests/neg/i12049.scala:24:20 ---------------------------------------------------------------------
|
35 | 58 | 24 |val _ = summon[M[B]] // error
|
36 | 59 | | ^
|
|
45 | 68 | | Therefore, reduction cannot advance to the remaining case
|
46 | 69 | |
|
47 | 70 | | case B => String
|
48 |
| --- Error: tests/neg/i12049.scala:25:26 --------------------------------------------------------------------------------- |
| 71 | +-- [E172] Type Error: tests/neg/i12049.scala:25:78 --------------------------------------------------------------------- |
49 | 72 | 25 |val _ = summon[String =:= Last[Int *: Int *: Boolean *: String *: EmptyTuple]] // error
|
50 |
| - | ^ |
51 |
| - | Match type reduction failed since selector EmptyTuple |
52 |
| - | matches none of the cases |
| 73 | + | ^ |
| 74 | + | Cannot prove that String =:= Last[EmptyTuple]. |
| 75 | + | |
| 76 | + | Note: a match type could not be fully reduced: |
| 77 | + | |
| 78 | + | trying to reduce Last[EmptyTuple] |
| 79 | + | failed since selector EmptyTuple |
| 80 | + | matches none of the cases |
53 | 81 | |
|
54 |
| - | case _ *: _ *: t => Last[t] |
55 |
| - | case t *: EmptyTuple => t |
56 |
| --- Error: tests/neg/i12049.scala:26:29 --------------------------------------------------------------------------------- |
| 82 | + | case _ *: _ *: t => Last[t] |
| 83 | + | case t *: EmptyTuple => t |
| 84 | +-- [E172] Type Error: tests/neg/i12049.scala:26:48 --------------------------------------------------------------------- |
57 | 85 | 26 |val _ = summon[(A, B, A) =:= Reverse[(A, B, A)]] // error
|
58 |
| - | ^ |
59 |
| - | Match type reduction failed since selector A *: EmptyTuple.type |
60 |
| - | matches none of the cases |
| 86 | + | ^ |
| 87 | + | Cannot prove that (A, B, A) =:= Tuple.Concat[Reverse[A *: EmptyTuple.type], (B, A)]. |
| 88 | + | |
| 89 | + | Note: a match type could not be fully reduced: |
| 90 | + | |
| 91 | + | trying to reduce Tuple.Concat[Reverse[A *: EmptyTuple.type], (B, A)] |
| 92 | + | trying to reduce Reverse[A *: EmptyTuple.type] |
| 93 | + | failed since selector A *: EmptyTuple.type |
| 94 | + | matches none of the cases |
| 95 | + | |
| 96 | + | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
| 97 | + | case EmptyTuple => EmptyTuple |
| 98 | + | trying to reduce Reverse[A *: EmptyTuple.type] |
| 99 | + | failed since selector A *: EmptyTuple.type |
| 100 | + | matches none of the cases |
61 | 101 | |
|
62 |
| - | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
63 |
| - | case EmptyTuple => EmptyTuple |
| 102 | + | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
| 103 | + | case EmptyTuple => EmptyTuple |
64 | 104 | -- [E008] Not Found Error: tests/neg/i12049.scala:28:21 ----------------------------------------------------------------
|
65 | 105 | 28 |val _ = (??? : M[B]).length // error
|
66 | 106 | | ^^^^^^^^^^^^^^^^^^^
|
|
0 commit comments