aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Symbols.scala
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Symbols.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Symbols.scala b/compiler/src/dotty/tools/dotc/core/Symbols.scala
index b10b94ad8..d355686ab 100644
--- a/compiler/src/dotty/tools/dotc/core/Symbols.scala
+++ b/compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -393,6 +393,10 @@ object Symbols {
denot
}
+ /** The initial denotation of this symbol, without going through `current` */
+ final def initialDenot(implicit ctx: Context): SymDenotation =
+ lastDenot.initial
+
private[core] def defRunId: RunId =
if (lastDenot == null) NoRunId else lastDenot.validFor.runId