aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 4566cfdb8..bfd150999 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -455,7 +455,7 @@ object Denotations {
val currentPeriod = ctx.period
val valid = myValidFor
def stillValid(denot: SymDenotation): Boolean =
- if (!denot.exists || (denot.flags is PackageClass)) true
+ if (denot is ValidForever) true
else if (denot.owner is PackageClass)
(denot.owner.decls.lookup(denot.name) eq denot.symbol) ||
(denot is ModuleClass) && stillValid(denot.sourceModule) // !!! DEBUG - we should check why module classes are not entered