summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/UnCurry.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-09-27 14:38:38 -0700
committerPaul Phillips <paulp@improving.org>2013-09-27 14:42:24 -0700
commit7d62df035cd4393c73e7530e1cad1130e79d90c6 (patch)
tree8a643ea65861b7bceb8d22397d991401b8716079 /src/compiler/scala/tools/nsc/transform/UnCurry.scala
parent5a8cd09819f58adcb866722f48b00066d23e7a82 (diff)
downloadscala-7d62df035cd4393c73e7530e1cad1130e79d90c6.tar.gz
scala-7d62df035cd4393c73e7530e1cad1130e79d90c6.tar.bz2
scala-7d62df035cd4393c73e7530e1cad1130e79d90c6.zip
Updating Position call sites.
Calling position factories rather than instantiating these particular classes. Not calling deprecated methods. Added a few position combinator methods.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/UnCurry.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/UnCurry.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
index e68f55a09e..d97f62d5d6 100644
--- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala
+++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
@@ -337,7 +337,7 @@ abstract class UnCurry extends InfoTransform
arg setType functionType(Nil, arg.tpe)
}
else {
- log(s"Argument '$arg' at line ${arg.pos.safeLine} is $formal from ${fun.fullName}")
+ log(s"Argument '$arg' at line ${arg.pos.line} is $formal from ${fun.fullName}")
def canUseDirectly(recv: Tree) = (
recv.tpe.typeSymbol.isSubClass(FunctionClass(0))
&& treeInfo.isExprSafeToInline(recv)