aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/run/t3346f.scala
blob: 1871b27bd46906b9776421e2c62f5bf2329d08ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import scala.language.implicitConversions
import scala.language.reflectiveCalls

object Test extends dotty.runtime.LegacyApp {
  trait Foo[A]
  implicit def fooString: Foo[String] = null
  implicit def value[A](implicit foo: Foo[A]): Int = 5

  println(implicitly[Int])

  implicit def conversion[A](x: Int)(implicit foo: Foo[A]): AnyRef{def aMethod: Int} = new {
    def aMethod = 5
  }
  println(1.aMethod)
}