1 2 3 4 5 6 7 8 9 10 11
package foo class A { /** The other */ def bar(x: Int): Unit = ??? def bar(x: Str): Unit = ??? } class B { (new A).bar(0) }