From 20c0a6a92dc2d618fa557bb19d78d8595ca527e6 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 2 Feb 2014 17:09:33 +0100 Subject: 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.) --- tests/neg/rootImplicits.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/neg/rootImplicits.scala') 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 { -- cgit v1.2.3