-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #7137: Do not import Predef.any2stringadd by default #7164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b7c4751
to
a2903fa
Compare
@tu lazy val ScalaPredefModule: Symbol = ctx.requiredModule("scala.Predef") | ||
@tu lazy val ScalaPredefModule: Symbol = { | ||
val mod = ctx.requiredModule("scala.Predef") | ||
mod.infoOrCompleter match { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
ae893dc
to
1f5e4a3
Compare
1f5e4a3
to
01a9b12
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
4279243
to
12882cc
Compare
This changes the default root import from `import scala.Predef._` to `import scala.Predef.{ _, any2stringadd => _ }`.
12882cc
to
1903b4a
Compare
implicit
modifier from Predef.any2stringadd
Reimplemented. Now modifies the root import. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// selectors: { _, any2stringadd => _ } | ||
val selectors = untpd.Ident(nme.WILDCARD) :: | ||
Thicket(untpd.Ident(nme.any2stringadd) :: untpd.Ident(nme.WILDCARD) :: Nil) :: | ||
Nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elegant 👍
Fix sbt scripted test after #7164
This changes the default root import from
import scala.Predef._
to
import scala.Predef.{ _, any2stringadd => _ }
.