summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/reflect/internal/AnnotationInfos.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/AnnotationInfos.scala b/src/compiler/scala/reflect/internal/AnnotationInfos.scala
index 762921f553..665e33e783 100644
--- a/src/compiler/scala/reflect/internal/AnnotationInfos.scala
+++ b/src/compiler/scala/reflect/internal/AnnotationInfos.scala
@@ -142,7 +142,7 @@ trait AnnotationInfos extends api.AnnotationInfos { self: SymbolTable =>
// We should always be able to print things without forcing them.
override def toString = if (forced) forcedInfo.toString else "@<?>"
- override def pos: Position = forcedInfo.pos
+ override def pos: Position = if (forced) forcedInfo.pos else NoPosition
}
/** Typed information about an annotation. It can be attached to either