package object pkg { def foo(x: Int): String = "a" def foo(x: String): String = "b" }