summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-28 12:08:37 -0700
committerPaul Phillips <paulp@improving.org>2012-11-09 16:44:53 -0700
commit632daed4ed846f773bb9a730c0721d21f3fa53c0 (patch)
treecdcee82e8f75e686442ccf1abdcfce5f7c68ae18 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parent2a1d0202f1b7f59f6312263b7a80ea750657296d (diff)
downloadscala-632daed4ed846f773bb9a730c0721d21f3fa53c0.tar.gz
scala-632daed4ed846f773bb9a730c0721d21f3fa53c0.tar.bz2
scala-632daed4ed846f773bb9a730c0721d21f3fa53c0.zip
Minor tweaks in Types/Scopes.
All methods to do with handling imports more uniformly and early filtering of symbols which cannot be imported. Also make TypeBounds treat a Wildcard in lower or upper bounds as an empty bound, so we don't see all these method signatures like def f[T >: ? <: ?] because that's not helpful.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index dfc621d60e..78380ad054 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -1006,7 +1006,7 @@ trait Contexts { self: Analyzer =>
}
def allImportedSymbols: Iterable[Symbol] =
- qual.tpe.members flatMap (transformImport(tree.selectors, _))
+ importableMembers(qual.tpe) flatMap (transformImport(tree.selectors, _))
private def transformImport(selectors: List[ImportSelector], sym: Symbol): List[Symbol] = selectors match {
case List() => List()