15
15
| case B => String
16
16
17
17
longer 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 --------------------- ------------------------------------------------------------
19
19
14 |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
23
23
|
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 ---------------------------------------------------------------------------------
35
27
22 |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
46
31
|
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
51
34
-- Error: tests/neg/i12049.scala:24:20 ---------------------------------------------------------------------------------
52
35
24 |val _ = summon[M[B]] // error
53
36
| ^
@@ -62,33 +45,22 @@ longer explanation available when compiling with `-explain`
62
45
| Therefore, reduction cannot advance to the remaining case
63
46
|
64
47
| case B => String
65
- -- Error: tests/neg/i12049.scala:25:78 ---------------------------------------------------------------------------------
48
+ -- Error: tests/neg/i12049.scala:25:26 ---------------------------------------------------------------------------------
66
49
25 |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
71
53
|
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 ---------------------------------------------------------------------------------
79
57
26 |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
89
61
|
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
92
64
-- [E008] Not Found Error: tests/neg/i12049.scala:28:21 ----------------------------------------------------------------
93
65
28 |val _ = (??? : M[B]).length // error
94
66
| ^^^^^^^^^^^^^^^^^^^
0 commit comments