1
// compile with t1987a.scala
4
// Note that the overloading works if instead of being in the package we import it:
5
// replace the above line with import bug.packageb._
8
val x = func(1) // doesn't compile: type mismatch; found: Int(1) required: String
9
val y = func("1") // compiles