aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-04-01 19:28:42 +0200
committerMartin Odersky <odersky@gmail.com>2017-04-11 09:33:12 +0200
commitbd992dd3158f192fd391605a6b51e1c23e09171d (patch)
treedf53e173078ba908fa154eb4b22ec4e07341c83d /compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala
parent2bfb2ca70c4588de00c12feba79ef7c0d68361a5 (diff)
downloaddotty-bd992dd3158f192fd391605a6b51e1c23e09171d.tar.gz
dotty-bd992dd3158f192fd391605a6b51e1c23e09171d.tar.bz2
dotty-bd992dd3158f192fd391605a6b51e1c23e09171d.zip
Fix and activate package scopes
Prevviously they were actually unused.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala
index 75deb8bb5..ad0d02fa8 100644
--- a/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala
+++ b/compiler/src/dotty/tools/dotc/core/SymbolLoaders.scala
@@ -148,7 +148,7 @@ class SymbolLoaders {
override def sourceModule(implicit ctx: Context) = _sourceModule
def description = "package loader " + classpath.name
- private[core] val currentDecls: MutableScope = newScope
+ private[core] val currentDecls: MutableScope = new PackageScope()
def doComplete(root: SymDenotation)(implicit ctx: Context): Unit = {
assert(root is PackageClass, root)