blob: 21c6fc96a62194a3d0a9f39325cb60e3c531e3f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
trait C[A]
object C {
implicit def ipl[A](implicit from: A => Ordered[A]): C[A] = null
}
object P {
def foo[A](i: A, j: A)(implicit c: C[A]): Unit = ()
}
class ImplicitChainTest {
def testTrivial: Unit = {
P.foo('0', '9')
P.foo('0', '9')
}
}
|