Closed
Description
Below an (un)reproducible transcript of the REPL not handling shadowing correctly. After both importing and defining f
, only the imported one is in scope.
> repl
[...]
scala> object A { def f = 1 }
// defined object A
scala> import A._
scala> def f = "hi"
def f: String
scala> f
val res0: Int = 1