aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-15 11:01:11 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-17 18:39:36 +0100
commit6324a75d39e4eab8a405dafd19480a0dbd4841ad (patch)
treed030479ba9211bcccc3ff6d6492bdfea7a89b96c /src/dotty/tools/dotc/core/Denotations.scala
parentf3ba2dc0c69b31e3fa839f3c13c664ed6c143371 (diff)
downloaddotty-6324a75d39e4eab8a405dafd19480a0dbd4841ad.tar.gz
dotty-6324a75d39e4eab8a405dafd19480a0dbd4841ad.tar.bz2
dotty-6324a75d39e4eab8a405dafd19480a0dbd4841ad.zip
Add diagnostic why a symbol is stale.
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index 2af3f463d..0f32d7ff3 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -590,7 +590,10 @@ object Denotations {
} while (d ne denot)
this
case _ =>
- if (coveredInterval.containsPhaseId(ctx.phaseId)) staleSymbolError
+ if (coveredInterval.containsPhaseId(ctx.phaseId)) {
+ if (ctx.settings.debug.value) ctx.traceInvalid(this)
+ staleSymbolError
+ }
else NoDenotation
}