|
| 1 | +-- [E172] Type Error: tests/neg/i16453.scala:21:19 --------------------------------------------------------------------- |
| 2 | +21 | summon[List[Int]] // error |
| 3 | + | ^ |
| 4 | + | No given instance of type List[Int] was found for parameter x of method summon in object Predef |
| 5 | +-- [E172] Type Error: tests/neg/i16453.scala:23:21 --------------------------------------------------------------------- |
| 6 | +23 | summon[Option[Int]] // error |
| 7 | + | ^ |
| 8 | + |No given instance of type Option[Int] was found for parameter x of method summon in object Predef |
| 9 | + | |
| 10 | + |Note: implicit conversions are not automatically applied to arguments of using clauses. You will have to pass the argument explicitly. |
| 11 | + |The following implicits in scope can be implicitly converted to Option[Int]: |
| 12 | + |- final lazy given val baz3: Char |
| 13 | + |- final lazy given val bar3: Int |
| 14 | +-- [E172] Type Error: tests/neg/i16453.scala:24:26 --------------------------------------------------------------------- |
| 15 | +24 | implicitly[Option[Char]] // error |
| 16 | + | ^ |
| 17 | + |No given instance of type Option[Char] was found for parameter e of method implicitly in object Predef |
| 18 | + | |
| 19 | + |Note: implicit conversions are not automatically applied to arguments of using clauses. You will have to pass the argument explicitly. |
| 20 | + |The following implicits in scope can be implicitly converted to Option[Char]: |
| 21 | + |- final lazy given val baz3: Char |
| 22 | +-- [E172] Type Error: tests/neg/i16453.scala:25:20 --------------------------------------------------------------------- |
| 23 | +25 | implicitly[String] // error |
| 24 | + | ^ |
| 25 | + |No given instance of type String was found for parameter e of method implicitly in object Predef |
| 26 | + | |
| 27 | + |Note: implicit conversions are not automatically applied to arguments of using clauses. You will have to pass the argument explicitly. |
| 28 | + |The following implicits in scope can be implicitly converted to String: |
| 29 | + |- final lazy given val baz3: Char |
| 30 | +-- [E172] Type Error: tests/neg/i16453.scala:35:16 --------------------------------------------------------------------- |
| 31 | +35 | summon[String] // error |
| 32 | + | ^ |
| 33 | + |No given instance of type String was found for parameter x of method summon in object Predef |
| 34 | + | |
| 35 | + |Note: implicit conversions are not automatically applied to arguments of using clauses. You will have to pass the argument explicitly. |
| 36 | + |The following implicits in scope can be implicitly converted to String: |
| 37 | + |- implicit val baz2: Char |
| 38 | +-- [E172] Type Error: tests/neg/i16453.scala:36:25 --------------------------------------------------------------------- |
| 39 | +36 | implicitly[Option[Int]] // error |
| 40 | + | ^ |
| 41 | + |No given instance of type Option[Int] was found for parameter e of method implicitly in object Predef |
| 42 | + | |
| 43 | + |Note: implicit conversions are not automatically applied to arguments of using clauses. You will have to pass the argument explicitly. |
| 44 | + |The following implicits in scope can be implicitly converted to Option[Int]: |
| 45 | + |- implicit val bar2: Int |
0 commit comments