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
Don't re-add root imports to context in REPLFrontEnd
The root context for REPL compiler runs is initialized by ReplCompiler#newRun,
which contains special handling to:
1. first add the default root imports (java.lang._, scala._, Predef._)
2. then import each previous REPL wrapper in order (incl. its imports)
The result is the innermost context imports the most recent REPL wrapper
and the (nearly) outermost contexts contain the default imports.
Before this commit, the default root imports were also being added to the
(innermost) context in REPLFrontEnd#runOn, resulting in REPL definitions
being shadowed by those in java.lang._, scala._ and Predef._
0 commit comments