From 2245ffd076ece27f874e912cca61ee440626dd56 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sun, 19 Feb 2017 00:03:15 +0100 Subject: Annotation#deferredSymAndTree: make sure symbol is valid in current run --- compiler/src/dotty/tools/dotc/core/Annotations.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') 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) } -- cgit v1.2.3