aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/overrides.scala
blob: 97402f773082cee7cad37b400e1fdad09e774f17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class A[T] {

  def f(x: T)(y: T = x) = y

}

class B extends A[Int] {

  override def f(x: Int)(y: Int) = y

  f(2)()

}