diff options
author | Martin Odersky <odersky@gmail.com> | 2011-12-01 12:51:34 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-12-01 12:51:34 +0100 |
commit | dd16261a408ae0bf06c3801cf35f3642aa24e877 (patch) | |
tree | 7364e7e7275dabc0720b46928e2fe739b1d5575e /src/compiler | |
parent | eb5e621d5130ceedfe0b88c2b5580438aaf98a4d (diff) | |
download | scala-dd16261a408ae0bf06c3801cf35f3642aa24e877.tar.gz scala-dd16261a408ae0bf06c3801cf35f3642aa24e877.tar.bz2 scala-dd16261a408ae0bf06c3801cf35f3642aa24e877.zip |
Fix to the fix of AnnotationInfos.
Turns out that forcing AnnotationInfo on .pos is too eager. Protected by if (forced) now.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/reflect/internal/AnnotationInfos.scala | 2 |
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 |