1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package foo { class Foo { } object Foo { def bippy(x: Int) = x } } package bar { class Bippy extends foo.Foo { def bippy(x: Int) = x } } object Test { def main(args: Array[String]): Unit = { new bar.Bippy bippy 5 } }