diff options
author | Martin Odersky <odersky@gmail.com> | 2014-02-02 17:09:33 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-02-02 17:32:04 +0100 |
commit | 20c0a6a92dc2d618fa557bb19d78d8595ca527e6 (patch) | |
tree | 3fdbd3aac9bd22335ba5cb2b2fb0dc64577f4a72 /tests | |
parent | c683f1c1d8235fffc4475e7b51ddc7536ec7eaa1 (diff) | |
download | dotty-20c0a6a92dc2d618fa557bb19d78d8595ca527e6.tar.gz dotty-20c0a6a92dc2d618fa557bb19d78d8595ca527e6.tar.bz2 dotty-20c0a6a92dc2d618fa557bb19d78d8595ca527e6.zip |
Avoid accessing implicits that come from root imports that are hidden by some nested import.
This also changes the criterion when a root import is disabled.
A root import is now disabled if there is an inner import from the same package or module, and the inner import contains at least one disabling clause X => _. (The latter crierion is new; without it, we would consider something like
import scala.{collections => c}
as a hiding import for Scala, which seems to go too far.)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/rootImplicits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/neg/rootImplicits.scala b/tests/neg/rootImplicits.scala index 4b833c503..f527333b5 100644 --- a/tests/neg/rootImplicits.scala +++ b/tests/neg/rootImplicits.scala @@ -1,7 +1,7 @@ package test import dotty._ -import Predef.{any2stringadd => _, _} +import Predef.{any2stringadd => _, StringAdd => _, _} object rootImplicits { |