summaryrefslogtreecommitdiff
path: root/test/files/run/t3346j.scala
blob: 98b5a870a78efd1a1284d9e2efc71f3803a5b346 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import scala.language.implicitConversions
import scala.language.reflectiveCalls
import scala.reflect.runtime.universe._

object Test extends App {
  class A[T]
  class B[T]
  implicit def foo[T: TypeTag](a: A[T])(implicit b: B[T]) = new { def baz = typeOf[T] }
  implicit def bar[T <: Int]: B[T] = new B[T]()
  println(new A[Int]().baz)
}