aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0039.scala
blob: 7b51320e21abecc7449ec25fed24f5c05694aa8a (plain) (blame)
1
2
3
4
5
6
abstract class Extensible[A, This <: Extensible[A, This]](x: A, xs: This) { self: This =>
    def mkObj(x: A, xs: This): This;
}
class Fixed[A](x: A, xs: Fixed[A]) extends Extensible[A, Fixed[A]](x, xs) {
    def mkObj(x: A, xs: Fixed[A]) = new Fixed(x, xs);
}