aboutsummaryrefslogblamecommitdiff
path: root/tests/untried/neg/overload.check
blob: abfabaf3f2b7dc9bcf677711a8ec68353484eca4 (plain) (tree)
1
2
3
4
5
6
7






                                                                       
overload.scala:10: error: ambiguous reference to overloaded definition,
both method f in class D of type (x: Any)Unit
and  method f in class C of type (x: Int)Unit
match argument types (Int)
  (new D).f(1)
          ^
one error found