You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>objectA { deff=1 }
// defined object A
scala>importA._
scala>deff="hi"deff:String
scala> f
valres0:Int=1