aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t0644.scala
blob: e51ec7df5f1e2fdbd10319407d56aced4a116501 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class A {
  def apply(): Int = 0
  def update(n: Int): Unit = {}
}

class B extends A {
  this()
  this()=1
  // 644 is wontfix so this is what should work.
  super.apply()
  super.update(1)
}