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
-Yimports:<import> Custom root imports, default is `java.lang,scala,scala.Predef`.
-Yno-imports Compile without importing scala.*, java.lang.*, or Predef.
-Yno-predef Compile without importing Predef.
A binding in some inner scope shadows bindings of lower precedence in the same scope as well as bindings of the same or lower precedence in outer scopes.
I guess in my example, the unqualified Seq would not be bound in object Foo scope, so it would try the outer scope of that and finds import scala._ in there.
steps
I want to mask
scala.Seq
.problem
The name
Seq
is still available withinobject Foo { ... }
.expectation
The code does not compile.
The text was updated successfully, but these errors were encountered: