blob: 52c14521622aff3092dea5a5da6a1b352e53ed2d (
plain) (
blame)
1
2
3
4
5
6
7
|
class A[m[x]] {
def str: m[Object] = error("foo")
}
class B[m[x]] extends A[m] {
override def str: m[String] = error("foo") // since x in m[x] is invariant, ! m[String] <: m[Object]
}
|