1 2 3 4 5 6 7 8 9
trait A { def f(x: Int): Unit; def f(x: String): Unit; } class B extends A { def f(x: Int): Unit = (); def f(x: String): Unit = (); }