|
1 | 1 | -- Error: tests/neg/i15474.scala:6:39 ----------------------------------------------------------------------------------
|
2 | 2 | 6 | given c: Conversion[ String, Int ] = _.toInt // error
|
3 | 3 | | ^
|
4 |
| - | Result of implicit search for ?{ toInt: ? } will change. |
5 |
| - | Current result Test2.c will be no longer eligible |
6 |
| - | because it is not defined before the search position. |
7 |
| - | Result with new rules: augmentString. |
8 |
| - | To opt into the new rules, use the `experimental.givenLoopPrevention` language import. |
| 4 | + | Result of implicit search for ?{ toInt: ? } will change. |
| 5 | + | Current result Test2.c will be no longer eligible |
| 6 | + | because it is not defined before the search position. |
| 7 | + | Result with new rules: augmentString. |
| 8 | + | To opt into the new rules, compile with `-source future` or use |
| 9 | + | the `scala.language.future` language import. |
9 | 10 | |
|
10 |
| - | To fix the problem without the language import, you could try one of the following: |
11 |
| - | - use a `given ... with` clause as the enclosing given, |
12 |
| - | - rearrange definitions so that Test2.c comes earlier, |
13 |
| - | - use an explicit conversion, |
14 |
| - | - use an import to get extension method into scope. |
15 |
| - | This will be an error in Scala 3.5 and later. |
| 11 | + | To fix the problem without the language import, you could try one of the following: |
| 12 | + | - use a `given ... with` clause as the enclosing given, |
| 13 | + | - rearrange definitions so that Test2.c comes earlier, |
| 14 | + | - use an explicit conversion, |
| 15 | + | - use an import to get extension method into scope. |
| 16 | + | This will be an error in Scala 3.5 and later. |
16 | 17 | -- Error: tests/neg/i15474.scala:12:56 ---------------------------------------------------------------------------------
|
17 | 18 | 12 | given Ordering[Price] = summon[Ordering[BigDecimal]] // error
|
18 | 19 | | ^
|
19 |
| - | Result of implicit search for Ordering[BigDecimal] will change. |
20 |
| - | Current result Prices.Price.given_Ordering_Price will be no longer eligible |
21 |
| - | because it is not defined before the search position. |
22 |
| - | Result with new rules: scala.math.Ordering.BigDecimal. |
23 |
| - | To opt into the new rules, use the `experimental.givenLoopPrevention` language import. |
| 20 | + | Result of implicit search for Ordering[BigDecimal] will change. |
| 21 | + | Current result Prices.Price.given_Ordering_Price will be no longer eligible |
| 22 | + | because it is not defined before the search position. |
| 23 | + | Result with new rules: scala.math.Ordering.BigDecimal. |
| 24 | + | To opt into the new rules, compile with `-source future` or use |
| 25 | + | the `scala.language.future` language import. |
24 | 26 | |
|
25 |
| - | To fix the problem without the language import, you could try one of the following: |
26 |
| - | - use a `given ... with` clause as the enclosing given, |
27 |
| - | - rearrange definitions so that Prices.Price.given_Ordering_Price comes earlier, |
28 |
| - | - use an explicit argument. |
29 |
| - | This will be an error in Scala 3.5 and later. |
| 27 | + | To fix the problem without the language import, you could try one of the following: |
| 28 | + | - use a `given ... with` clause as the enclosing given, |
| 29 | + | - rearrange definitions so that Prices.Price.given_Ordering_Price comes earlier, |
| 30 | + | - use an explicit argument. |
| 31 | + | This will be an error in Scala 3.5 and later. |
0 commit comments