aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2016-11-17 11:22:53 +0100
committerGitHub <noreply@github.com>2016-11-17 11:22:53 +0100
commit156a9d978c9dab8e63ce1677a8743487057533ba (patch)
tree85c865b928f5f194aba78cfea776fe37892c97a5 /src/dotty/tools/dotc/core
parent6f04ca7f497212df4172bdb119d523388c42d5fd (diff)
parente8a09cd0e21d4d51fb877ddd4d2b0c409ff906b9 (diff)
downloaddotty-156a9d978c9dab8e63ce1677a8743487057533ba.tar.gz
dotty-156a9d978c9dab8e63ce1677a8743487057533ba.tar.bz2
dotty-156a9d978c9dab8e63ce1677a8743487057533ba.zip
Merge pull request #1720 from dotty-staging/fix-i1701
fix #1701: disqualify package name in type name resolution
Diffstat (limited to 'src/dotty/tools/dotc/core')
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index 38b2c8bd6..b5bd196d2 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -428,7 +428,7 @@ object Symbols {
final def entered(implicit ctx: Context): this.type = {
assert(this.owner.isClass, s"symbol ($this) entered the scope of non-class owner ${this.owner}") // !!! DEBUG
this.owner.asClass.enter(this)
- if (this is Module) this.owner.asClass.enter(this.moduleClass)
+ if (this.is(Module, butNot = Package)) this.owner.asClass.enter(this.moduleClass)
this
}