aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1438.scala
blob: 221c3439dd8afab25cdbe573631b55fdc8af98c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class C[A] {
  type CC[B] <: C[B]
  def aio[T]: T = aio[T]
}
class D[A] extends C[A] {
  protected def nv[B](elems: Iterator[B]): CC[B] = {
    val x = new D[B]
    x.aio[CC[B]]
  }
}