blob: ff3c7a519e8b95e22be02c996cea4d84c9dc4587 (
plain) (
tree)
|
|
class B {
class X
}
class A extends B
object Test {
def test1(): Unit = {
implicitly[B#X <:< A#X] // error: no implicit argument
} // error: no implicit argument
def test2(): Unit = {
val a : { type T; type U } = ??? // error // error
implicitly[a.T <:< a.U] // error: no implicit argument
}
}
|