diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-01-07 08:58:53 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-01-26 15:41:07 +0100 |
commit | eb4b06544a4362231357686c39beef9dbe00d932 (patch) | |
tree | 20533826a3ab198915ccba546c0ca6ab18fe7841 /src/compiler/scala/tools/nsc/Global.scala | |
parent | 3813d75fa8c83a593859919f5979a1a217e8da44 (diff) | |
download | scala-eb4b06544a4362231357686c39beef9dbe00d932.tar.gz scala-eb4b06544a4362231357686c39beef9dbe00d932.tar.bz2 scala-eb4b06544a4362231357686c39beef9dbe00d932.zip |
Wider use of isTopLevel
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index 05d0bcf6b0..d751669612 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -1378,7 +1378,7 @@ class Global(var currentSettings: Settings, var reporter: Reporter) def compiles(sym: Symbol): Boolean = if (sym == NoSymbol) false else if (symSource.isDefinedAt(sym)) true - else if (!sym.owner.isPackageClass) compiles(sym.enclosingTopLevelClass) + else if (!sym.isTopLevel) compiles(sym.enclosingTopLevelClass) else if (sym.isModuleClass) compiles(sym.sourceModule) else false |