aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/badAuxConstr.scala
blob: 8984f2306166c397fd4e35d507b1da451d85a984 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                   
class A[S, T](s: S, t: T) {
  val z: T = ???
}

class B[X](x: X) extends A[X, X](x, x) {
  def this() = this(z) // error: not found: z

  val u: X = x
  def this(x: Int) = this(u) // error: not found: u
}