aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/overload.scala
blob: 3128a39d06b87ce13e0b5c1b028e9eda4d0bf62b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                          
class C {
  def f(x: Int): Unit = {}
}

class D extends C {
  def f(x: Any): Unit = {}
}

object Test {
  (new D).f(1)
}