|
15 | 15 | | case B => String
|
16 | 16 | |
|
17 | 17 | | longer explanation available when compiling with `-explain`
|
18 |
| --- [E184] Type 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 |
| --- [E184] Type 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 |
31 | 46 | |
|
32 |
| - | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
33 |
| - | case EmptyTuple => EmptyTuple |
| 47 | + | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
| 48 | + | case EmptyTuple => EmptyTuple |
| 49 | + | |
| 50 | + | longer explanation available when compiling with `-explain` |
34 | 51 | -- [E172] Type Error: tests/neg/i12049.scala:24:20 ---------------------------------------------------------------------
|
35 | 52 | 24 |val _ = summon[M[B]] // error
|
36 | 53 | | ^
|
|
45 | 62 | | Therefore, reduction cannot advance to the remaining case
|
46 | 63 | |
|
47 | 64 | | case B => String
|
48 |
| --- [E184] Type Error: tests/neg/i12049.scala:25:26 --------------------------------------------------------------------- |
| 65 | +-- [E172] Type Error: tests/neg/i12049.scala:25:78 --------------------------------------------------------------------- |
49 | 66 | 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 |
| 67 | + | ^ |
| 68 | + | Cannot prove that String =:= Last[EmptyTuple]. |
| 69 | + | |
| 70 | + | Note: a match type could not be fully reduced: |
| 71 | + | |
| 72 | + | trying to reduce Last[EmptyTuple] |
| 73 | + | failed since selector EmptyTuple |
| 74 | + | matches none of the cases |
53 | 75 | |
|
54 |
| - | case _ *: _ *: t => Last[t] |
55 |
| - | case t *: EmptyTuple => t |
56 |
| --- [E184] Type Error: tests/neg/i12049.scala:26:29 --------------------------------------------------------------------- |
| 76 | + | case _ *: _ *: t => Last[t] |
| 77 | + | case t *: EmptyTuple => t |
| 78 | +-- [E172] Type Error: tests/neg/i12049.scala:26:48 --------------------------------------------------------------------- |
57 | 79 | 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 |
| 80 | + | ^ |
| 81 | + | Cannot prove that (A, B, A) =:= Tuple.Concat[Reverse[A *: EmptyTuple.type], (B, A)]. |
| 82 | + | |
| 83 | + | Note: a match type could not be fully reduced: |
| 84 | + | |
| 85 | + | trying to reduce Tuple.Concat[Reverse[A *: EmptyTuple.type], (B, A)] |
| 86 | + | trying to reduce Reverse[A *: EmptyTuple.type] |
| 87 | + | failed since selector A *: EmptyTuple.type |
| 88 | + | matches none of the cases |
61 | 89 | |
|
62 |
| - | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
63 |
| - | case EmptyTuple => EmptyTuple |
| 90 | + | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)] |
| 91 | + | case EmptyTuple => EmptyTuple |
64 | 92 | -- [E008] Not Found Error: tests/neg/i12049.scala:28:21 ----------------------------------------------------------------
|
65 | 93 | 28 |val _ = (??? : M[B]).length // error
|
66 | 94 | | ^^^^^^^^^^^^^^^^^^^
|
|
0 commit comments