blob: d124876e02743e872be316140c7b1122090e8378 (
plain) (
tree)
|
|
class A
object A {
implicit def theA: A = new A
}
class Foo[T]
object Foo {
implicit def theFoo: Foo[A] = new Foo[A]
}
object Test {
def getFooA(implicit foo: Foo[A]) = foo
def getA(implicit a: A) = a
getFooA
getA
}
|