|
| 1 | +-- [E007] Type Mismatch Error: tests/neg/i13780.scala:12:32 ------------------------------------------------------------ |
| 2 | +12 | def unpair[X <: Y]: Head[X] = "" // error |
| 3 | + | ^^ |
| 4 | + | Found: ("" : String) |
| 5 | + | Required: Head[X] |
| 6 | + | |
| 7 | + | where: X is a type in method unpair with bounds <: A.this.Y |
| 8 | + | |
| 9 | + | |
| 10 | + | Note: a match type could not be fully reduced: |
| 11 | + | |
| 12 | + | trying to reduce Head[X] |
| 13 | + | failed since selector X |
| 14 | + | does not match case (a, b) => a |
| 15 | + | and cannot be shown to be disjoint from it either. |
| 16 | + | |
| 17 | + | longer explanation available when compiling with `-explain` |
1 | 18 | -- [E007] Type Mismatch Error: tests/neg/i13780.scala:18:31 ------------------------------------------------------------
|
2 | 19 | 18 | def int[X <: Y]: Int = unpair[X] // error
|
3 | 20 | | ^^^^^^^^^
|
|
11 | 28 | |
|
12 | 29 | | trying to reduce Head[X]
|
13 | 30 | | failed since selector X
|
14 |
| - | does not uniquely determine parameters a, b in |
15 |
| - | case (a, b) => a |
16 |
| - | The computed bounds for the parameters are: |
17 |
| - | a >: Int |
18 |
| - | b >: Int |
| 31 | + | does not match case (a, b) => a |
| 32 | + | and cannot be shown to be disjoint from it either. |
19 | 33 | |
|
20 | 34 | | longer explanation available when compiling with `-explain`
|
21 | 35 | -- [E007] Type Mismatch Error: tests/neg/i13780.scala:23:37 ------------------------------------------------------------
|
|
31 | 45 | |
|
32 | 46 | | trying to reduce Head[X]
|
33 | 47 | | failed since selector X
|
34 |
| - | does not uniquely determine parameters a, b in |
35 |
| - | case (a, b) => a |
36 |
| - | The computed bounds for the parameters are: |
37 |
| - | a >: String |
38 |
| - | b >: String |
| 48 | + | does not match case (a, b) => a |
| 49 | + | and cannot be shown to be disjoint from it either. |
39 | 50 | |
|
40 | 51 | | longer explanation available when compiling with `-explain`
|
0 commit comments