1515 | case B => String
1616
1717longer explanation available when compiling with `-explain`
18- -- [E007] Type Mismatch Error: tests/neg/i12049.scala:14:17 ------------------------------------------------------------
18+ -- Error: tests/neg/i12049.scala:14:23 --------------------- ------------------------------------------------------------
191914 |val y3: String = ??? : Last[Int *: Int *: Boolean *: String *: EmptyTuple] // error
20- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
21- | Found: Last[ EmptyTuple.type]
22- | Required: String
20+ | ^
21+ | Match type reduction failed since selector EmptyTuple.type
22+ | matches none of the cases
2323 |
24- | Note: a match type could not be fully reduced:
25- |
26- | trying to reduce Last[EmptyTuple.type]
27- | failed since selector EmptyTuple.type
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 ------------------------------------------------------------
24+ | case _ *: _ *: t => Last[t]
25+ | case t *: EmptyTuple => t
26+ -- Error: tests/neg/i12049.scala:22:26 ---------------------------------------------------------------------------------
352722 |val z3: (A, B, A) = ??? : Reverse[(A, B, A)] // error
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
28+ | ^
29+ | Match type reduction failed since selector A *: EmptyTuple.type
30+ | matches none of the cases
4631 |
47- | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)]
48- | case EmptyTuple => EmptyTuple
49-
50- longer explanation available when compiling with `-explain`
32+ | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)]
33+ | case EmptyTuple => EmptyTuple
5134-- Error: tests/neg/i12049.scala:24:20 ---------------------------------------------------------------------------------
523524 |val _ = summon[M[B]] // error
5336 | ^
@@ -62,33 +45,22 @@ longer explanation available when compiling with `-explain`
6245 | Therefore, reduction cannot advance to the remaining case
6346 |
6447 | case B => String
65- -- Error: tests/neg/i12049.scala:25:78 ---------------------------------------------------------------------------------
48+ -- Error: tests/neg/i12049.scala:25:26 ---------------------------------------------------------------------------------
664925 |val _ = summon[String =:= Last[Int *: Int *: Boolean *: String *: EmptyTuple]] // error
67- | ^
68- | Cannot prove that String =:= Last[EmptyTuple.type].
69- |
70- | Note: a match type could not be fully reduced:
50+ | ^
51+ | Match type reduction failed since selector EmptyTuple.type
52+ | matches none of the cases
7153 |
72- | trying to reduce Last[EmptyTuple.type]
73- | failed since selector EmptyTuple.type
74- | matches none of the cases
75- |
76- | case _ *: _ *: t => Last[t]
77- | case t *: EmptyTuple => t
78- -- Error: tests/neg/i12049.scala:26:48 ---------------------------------------------------------------------------------
54+ | case _ *: _ *: t => Last[t]
55+ | case t *: EmptyTuple => t
56+ -- Error: tests/neg/i12049.scala:26:29 ---------------------------------------------------------------------------------
795726 |val _ = summon[(A, B, A) =:= Reverse[(A, B, A)]] // error
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
58+ | ^
59+ | Match type reduction failed since selector A *: EmptyTuple.type
60+ | matches none of the cases
8961 |
90- | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)]
91- | case EmptyTuple => EmptyTuple
62+ | case t1 *: t2 *: ts => Tuple.Concat[Reverse[ts], (t2, t1)]
63+ | case EmptyTuple => EmptyTuple
9264-- [E008] Not Found Error: tests/neg/i12049.scala:28:21 ----------------------------------------------------------------
936528 |val _ = (??? : M[B]).length // error
9466 | ^^^^^^^^^^^^^^^^^^^
0 commit comments