From 7a03d2498b6ba19fb1da6a36b850c4dc6408cdcc Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 24 Apr 2009 22:41:27 +0000 Subject: Fix for #1752. --- src/compiler/scala/tools/nsc/Interpreter.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/Interpreter.scala b/src/compiler/scala/tools/nsc/Interpreter.scala index 4a8837196d..03c4920d4a 100644 --- a/src/compiler/scala/tools/nsc/Interpreter.scala +++ b/src/compiler/scala/tools/nsc/Interpreter.scala @@ -275,7 +275,10 @@ class Interpreter(val settings: Settings, out: PrintWriter) { val isWanted = wanted contains _ def keepHandler(handler: MemberHandler): Boolean = { import handler._ - definesImplicit || importsWildcard || (importedNames ++ boundNames).exists(isWanted) + // Single symbol imports might be implicits! See bug #1752. Rather than + // try to finesse this, we will mimic all imports for now. + def isImport = handler.isInstanceOf[ImportHandler] + definesImplicit || isImport || (importedNames ++ boundNames).exists(isWanted) } reqs match { -- cgit v1.2.3