|
1 |
| --- [E007] Type Mismatch Error: tests/neg/i15998.scala:11:23 ------------------------------------------------------------ |
2 |
| -11 | RingSeq.isRotationOf("DAB") // error |
3 |
| - | ^^^^^ |
4 |
| - | Found: ("DAB" : String) |
5 |
| - | Required: CC[A] |
| 1 | +-- [E007] Type Mismatch Error: tests/neg/i15998.scala:6:12 ------------------------------------------------------------- |
| 2 | +6 |val _ = foo(1) // error |
| 3 | + | ^ |
| 4 | + | Found: (1 : Int) |
| 5 | + | Required: CC[A] |
| 6 | + | |
| 7 | + | where: A is a type variable |
| 8 | + | CC is a type variable with constraint <: [B] =>> Any |
| 9 | + | |
| 10 | + | Note that implicit conversions were not tried because the result of an implicit conversion |
| 11 | + | must be more specific than CC[A] |
| 12 | + | |
| 13 | + | longer explanation available when compiling with `-explain` |
| 14 | +-- Error: tests/neg/i15998.scala:11:11 --------------------------------------------------------------------------------- |
| 15 | +11 |val _ = bar // error |
| 16 | + | ^ |
| 17 | + | No implicit search was attempted for parameter x of method bar |
| 18 | + | since the expected type X is not specific enough |
6 | 19 | |
|
7 |
| - | where: A is a type variable |
8 |
| - | CC is a type variable with constraint <: [B] =>> collection.SeqOps[B, CC, CC[B]] |
9 |
| - | |
10 |
| - | Note that implicit conversions were not tried because the result of an implicit conversion |
11 |
| - | must be more specific than CC[A] |
12 |
| - | |
13 |
| - | longer explanation available when compiling with `-explain` |
14 |
| --- [E008] Not Found Error: tests/neg/i15998.scala:12:9 ----------------------------------------------------------------- |
15 |
| -12 | "ABCD".isRotationOf("DAB") // error |
16 |
| - | ^^^^^^^^^^^^^^^^^^^ |
17 |
| - | value isRotationOf is not a member of String. |
18 |
| - | An extension method was tried, but could not be fully constructed: |
19 |
| - | |
20 |
| - | RingSeq.isRotationOf[A, CC]("ABCD") failed with |
21 |
| - | |
22 |
| - | Found: ("ABCD" : String) |
23 |
| - | Required: CC[A] |
24 |
| - | |
25 |
| - | where: A is a type variable |
26 |
| - | CC is a type variable with constraint <: [B] =>> collection.SeqOps[B, CC, CC[B]] |
27 |
| - | |
28 |
| - | Note that implicit conversions were not tried because the result of an implicit conversion |
29 |
| - | must be more specific than CC[A] |
30 |
| --- Error: tests/neg/i15998.scala:21:13 --------------------------------------------------------------------------------- |
31 |
| -21 | val x = foo // error |
32 |
| - | ^ |
33 |
| - | No implicit search was attempted for parameter x of method foo |
34 |
| - | since the expected type X is too unspecific |
35 |
| - | |
36 |
| - | where: X is a type variable |
| 20 | + | where: X is a type variable |
0 commit comments