diff options
-rw-r--r-- | src/compiler/scala/reflect/internal/AnnotationInfos.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/AnnotationInfos.scala b/src/compiler/scala/reflect/internal/AnnotationInfos.scala index 5bdd04e544..91e1c3d50d 100644 --- a/src/compiler/scala/reflect/internal/AnnotationInfos.scala +++ b/src/compiler/scala/reflect/internal/AnnotationInfos.scala @@ -138,7 +138,11 @@ trait AnnotationInfos extends api.AnnotationInfos { self: SymbolTable => // necessary for reification, see Reifiers.scala for more info private var orig: Tree = EmptyTree def original = orig - def setOriginal(t: Tree): this.type = { orig = t; this } + def setOriginal(t: Tree): this.type = { + orig = t + this setPos t.pos + this + } override def toString = ( atp + |