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