aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-02-19 00:03:15 +0100
committerGuillaume Martres <smarter@ubuntu.com>2017-02-19 00:03:47 +0100
commit2245ffd076ece27f874e912cca61ee440626dd56 (patch)
treebfad26e4fb525900bbbb59f69e60fa4fbc5ed59a /compiler/src/dotty
parent5b330f1fea7a4c7ad3a33c237e99cc31fabfba59 (diff)
downloaddotty-2245ffd076ece27f874e912cca61ee440626dd56.tar.gz
dotty-2245ffd076ece27f874e912cca61ee440626dd56.tar.bz2
dotty-2245ffd076ece27f874e912cca61ee440626dd56.zip
Annotation#deferredSymAndTree: make sure symbol is valid in current run
Diffstat (limited to 'compiler/src/dotty')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Annotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Annotations.scala b/compiler/src/dotty/tools/dotc/core/Annotations.scala
index 8280c69c3..5464dce4f 100644
--- a/compiler/src/dotty/tools/dotc/core/Annotations.scala
+++ b/compiler/src/dotty/tools/dotc/core/Annotations.scala
@@ -122,7 +122,7 @@ object Annotations {
private[this] var mySym: Symbol = _
override def symbol(implicit ctx: Context): Symbol = {
- if (mySym == null) {
+ if (mySym == null || mySym.defRunId != ctx.runId) {
mySym = symf(ctx)
assert(mySym != null)
}