diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-07-25 13:54:32 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-07-25 13:54:32 -0700 |
commit | fd9fa7233052698595f23af4a233ae6e13e13758 (patch) | |
tree | 2cfcbb0bab76dcd662feab074246cee49d85ed11 /src | |
parent | fc4b464faeb43c3e2917b11a95c4f84481c443f7 (diff) | |
parent | c34b048c2f35ae48dad50cf1b870c8c6dde71fd9 (diff) | |
download | scala-fd9fa7233052698595f23af4a233ae6e13e13758.tar.gz scala-fd9fa7233052698595f23af4a233ae6e13e13758.tar.bz2 scala-fd9fa7233052698595f23af4a233ae6e13e13758.zip |
Merge pull request #2769 from paulp/pr/backport-272b165a57
SI-7569 Fix end position in PostfixSelect tree
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala index e92c3e1654..1412bff0ab 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala @@ -248,7 +248,7 @@ abstract class TreeBuilder { /** Tree for `od op`, start is start0 if od.pos is borked. */ def makePostfixSelect(start0: Int, end: Int, od: Tree, op: Name): Tree = { val start = if (od.pos.isDefined) od.pos.startOrPoint else start0 - atPos(r2p(start, end, end)) { new PostfixSelect(od, op.encode) } + atPos(r2p(start, end, end + op.length)) { new PostfixSelect(od, op.encode) } } /** A type tree corresponding to (possibly unary) intersection type */ |