summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-01-07 08:58:53 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-01-26 15:41:07 +0100
commiteb4b06544a4362231357686c39beef9dbe00d932 (patch)
tree20533826a3ab198915ccba546c0ca6ab18fe7841 /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parent3813d75fa8c83a593859919f5979a1a217e8da44 (diff)
downloadscala-eb4b06544a4362231357686c39beef9dbe00d932.tar.gz
scala-eb4b06544a4362231357686c39beef9dbe00d932.tar.bz2
scala-eb4b06544a4362231357686c39beef9dbe00d932.zip
Wider use of isTopLevel
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index f0ced1a8d4..c316955a02 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -1620,7 +1620,7 @@ abstract class RefChecks extends InfoTransform with scala.reflect.internal.trans
result match {
case ClassDef(_, _, _, _)
| TypeDef(_, _, _, _) =>
- if (result.symbol.isLocal || result.symbol.owner.isPackageClass)
+ if (result.symbol.isLocal || result.symbol.isTopLevel)
varianceValidator.traverse(result)
case _ =>
}