aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/presuperContext.scala
blob: 437765598d30424143239aa8ec88feb56473fce6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class A {
  class C extends { val x: A = this } with AnyRef
}

class B(x: Int)

class D {
  class C(x: Int) extends B({val test: D = this; x}) {
    def this() = {
      this({val test: D = this; 1})
    }
  }
}