blob: 410afba148a1cd1637a302ee069a2e23bdca4555 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
trait A {
type T
}
object O {
implicit def b(implicit x: A): x.T = error("")
}
class Test {
import O._
implicit val a: A = new A {}
implicitly[a.T] // works
implicitly[a.T](b(a)) // works
}
|