diff options
author | Paul Phillips <paulp@improving.org> | 2009-04-24 22:41:27 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-04-24 22:41:27 +0000 |
commit | 7a03d2498b6ba19fb1da6a36b850c4dc6408cdcc (patch) | |
tree | 9eb45d72d4839c220a08d67dcd1b6318a6ff3719 /src/compiler | |
parent | 458c4128c8398e050559bbf620d692cd711a5fe1 (diff) | |
download | scala-7a03d2498b6ba19fb1da6a36b850c4dc6408cdcc.tar.gz scala-7a03d2498b6ba19fb1da6a36b850c4dc6408cdcc.tar.bz2 scala-7a03d2498b6ba19fb1da6a36b850c4dc6408cdcc.zip |
Fix for #1752.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/Interpreter.scala | 5 |
1 files changed, 4 insertions, 1 deletions
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 { |