aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-02 17:09:33 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-02 17:32:04 +0100
commit20c0a6a92dc2d618fa557bb19d78d8595ca527e6 (patch)
tree3fdbd3aac9bd22335ba5cb2b2fb0dc64577f4a72 /test/dotc/tests.scala
parentc683f1c1d8235fffc4475e7b51ddc7536ec7eaa1 (diff)
downloaddotty-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 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 0b36fb810..c32492778 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -43,7 +43,7 @@ class tests extends CompilerTest {
@Test def neg_typedidents() = compileFile(negDir, "typedidents", xerrors = 2)
@Test def neg_assignments() = compileFile(negDir, "assignments", xerrors = 3)
@Test def neg_typers() = compileFile(negDir, "typers", xerrors = 10)
- //@Test def neg_rootImports = compileFile(negDir, "rootImplicits", xerrors = 2)
+ @Test def neg_rootImports = compileFile(negDir, "rootImplicits", xerrors = 2)
@Test def dotc = compileDir(dotcDir + "tools/dotc")
@Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast")