diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/interactive/RangePositions.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/RangePositions.scala b/src/compiler/scala/tools/nsc/interactive/RangePositions.scala index 78d3b55a3b..49fc8be185 100644 --- a/src/compiler/scala/tools/nsc/interactive/RangePositions.scala +++ b/src/compiler/scala/tools/nsc/interactive/RangePositions.scala @@ -258,7 +258,7 @@ self: scala.tools.nsc.Global => if (!t.pos.isTransparent) last = t super.traverse(t) } else if (t.symbol != null) { - for(annot <- t.symbol.annotations if !annot.pos.isTransparent) { + for(annot <- t.symbol.annotations if (annot.pos includes pos) && !annot.pos.isTransparent) { last = Annotated(TypeTree(annot.atp) setPos annot.pos, t) last.setType(annot.atp) last.setPos(annot.pos) |