aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t3071.scala
blob: 7e144329416cee11a22f3f4b582e5bafebcee1dc (plain) (tree)
1
2
3
4
5
6
7






                                                   
class A (val i: Int) {
  def copy (i: Int = this.i): A = new A(i)
}

class B (val j: Int) extends A(1) {
  override def copy (j: Int = this.j): B = new B(j)
}