diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-02-19 00:03:15 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-02-19 00:03:47 +0100 |
commit | 2245ffd076ece27f874e912cca61ee440626dd56 (patch) | |
tree | bfad26e4fb525900bbbb59f69e60fa4fbc5ed59a /compiler/src/dotty/tools | |
parent | 5b330f1fea7a4c7ad3a33c237e99cc31fabfba59 (diff) | |
download | dotty-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/tools')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/Annotations.scala | 2 |
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) } |