diff options
author | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2012-06-26 18:24:51 +0200 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2012-06-26 18:24:51 +0200 |
commit | b7888cc356094138fa79e45bf101be4a893bfd50 (patch) | |
tree | 0d4a5a83e0fa310b44fac562a24589d8a1fc6a1f /src/compiler | |
parent | 5a7bbfe035ecb64acd57fc66ea0d874ad02c31ff (diff) | |
download | scala-b7888cc356094138fa79e45bf101be4a893bfd50.tar.gz scala-b7888cc356094138fa79e45bf101be4a893bfd50.tar.bz2 scala-b7888cc356094138fa79e45bf101be4a893bfd50.zip |
Fix range positions when applying anonymous classes. Review by @dragos or @odersky
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index acf1b3dc59..35127a7571 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -4978,7 +4978,7 @@ trait Typers extends Modes with Adaptations with Tags { typedTypeApply(tree, mode, fun1, args1) case Apply(Block(stats, expr), args) => - typed1(atPos(tree.pos)(Block(stats, Apply(expr, args))), mode, pt) + typed1(atPos(tree.pos)(Block(stats, Apply(expr, args) setPos tree.pos.makeTransparent)), mode, pt) case Apply(fun, args) => typedApply(fun, args) match { |