aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-09-24 13:13:07 +0200
committerMartin Odersky <odersky@gmail.com>2013-09-24 13:13:07 +0200
commit50a84e0e900fd5a67a4701fd2730a0c0bf66b834 (patch)
treee9f87f17798a8075b0198994afcea9eb322c63f5
parent1988a740718bc5edd28d8be358576d7033cadd6d (diff)
downloaddotty-50a84e0e900fd5a67a4701fd2730a0c0bf66b834.tar.gz
dotty-50a84e0e900fd5a67a4701fd2730a0c0bf66b834.tar.bz2
dotty-50a84e0e900fd5a67a4701fd2730a0c0bf66b834.zip
Fixed handling of packages in world without HasFixedSym
Packages are always permanent; never reloaded.
-rw-r--r--src/dotty/tools/dotc/core/Types.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index 33eeff5c8..5a6307751 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -1165,6 +1165,8 @@ object Types {
private def computeDenot(implicit ctx: Context): Denotation = {
val denot = lastDenotationOrSym match {
+ case d: SymDenotation if d is ValidForever =>
+ d.current
case d: Denotation =>
if (d.validFor.runId == ctx.period.runId) d.current
else loadDenot