diff options
author | Martin Odersky <odersky@gmail.com> | 2011-02-05 12:40:27 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-02-05 12:40:27 +0000 |
commit | 639d471f4dfa4f711138a35ddfc1017077861770 (patch) | |
tree | 6aed4d5843c8da04ade03f9016c3ce3a4964ecd4 | |
parent | 20fc7a364a8f9d5de129ede531e6e1ab89f8fb1d (diff) | |
download | scala-639d471f4dfa4f711138a35ddfc1017077861770.tar.gz scala-639d471f4dfa4f711138a35ddfc1017077861770.tar.bz2 scala-639d471f4dfa4f711138a35ddfc1017077861770.zip |
Fixed failure to load presentation compiler wit...
Fixed failure to load presentation compiler with sources in the empty
package.
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/BrowsingLoaders.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/BrowsingLoaders.scala b/src/compiler/scala/tools/nsc/symtab/BrowsingLoaders.scala index 106d5ca18a..b024d550b7 100644 --- a/src/compiler/scala/tools/nsc/symtab/BrowsingLoaders.scala +++ b/src/compiler/scala/tools/nsc/symtab/BrowsingLoaders.scala @@ -105,7 +105,7 @@ abstract class BrowsingLoaders extends SymbolLoaders { */ override def enterToplevelsFromSource(root: Symbol, name: String, src: AbstractFile) { try { - if (root == definitions.EmptyPackageClass) + if (root == definitions.RootClass || root == definitions.EmptyPackageClass) super.enterToplevelsFromSource(root, name, src) else browseTopLevel(root, src) |