|
1 |
| --- [E172] Type Error: tests/neg/i16453.scala:10:43 --------------------------------------------------------------------- |
2 |
| -10 | val fails = summon[String => Option[Int]] // error |
3 |
| - | ^ |
4 |
| - |No given instance of type String => Option[Int] was found for parameter x of method summon in object Predef |
| 1 | +-- [E172] Type Error: tests/neg/i16453.scala:14:21 --------------------------------------------------------------------- |
| 2 | +14 | summon[Option[Int]] // error |
| 3 | + | ^ |
| 4 | + |No given instance of type Option[Int] was found for parameter x of method summon in object Predef |
5 | 5 | |
|
6 |
| - |Note: Chaining implicit conversions is no longer allowed in Scala. The following conversions were ignored: |
7 |
| - | - final given def given_Conversion_Function_Function[T]: Conversion[String => T, String => Option[T]] |
8 |
| - |If there is an implicit `Conversion[A, String => Option[Int]]` and an implicit `A` in scope, you need to explicitly pass the argument, e.g. `(using summon[A])` |
| 6 | + |Note: Chaining implicit conversions are not allowed in Scala. The following conversions are in scope: |
| 7 | + | - final given def given_Conversion_T_Option[T]: Conversion[T, Option[T]] |
| 8 | + | - implicit def toOption[T](t: T): Option[T] |
| 9 | + |If there is an implicit `Conversion[A, Option[Int]]` and an implicit `A` in scope, you can explicitly pass the argument, e.g. `(using summon[A])` |
| 10 | +-- [E172] Type Error: tests/neg/i16453.scala:15:25 --------------------------------------------------------------------- |
| 11 | +15 | implicitly[Option[Int]] // error |
| 12 | + | ^ |
| 13 | + |No given instance of type Option[Int] was found for parameter e of method implicitly in object Predef |
| 14 | + | |
| 15 | + |Note: Chaining implicit conversions are not allowed in Scala. The following conversions are in scope: |
| 16 | + | - final given def given_Conversion_T_Option[T]: Conversion[T, Option[T]] |
| 17 | + | - implicit def toOption[T](t: T): Option[T] |
| 18 | + |If there is an implicit `Conversion[A, Option[Int]]` and an implicit `A` in scope, you can explicitly pass the argument, e.g. `(using summon[A])` |
0 commit comments