summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-03-31 16:06:10 +0000
committerMartin Odersky <odersky@gmail.com>2006-03-31 16:06:10 +0000
commitb178e4658b3066b3f2cb2210bc57af9e8de71868 (patch)
treee2c5d64b2bf7622d41123257c170e36fb7761afc /src
parentfde7c4cb46c91e05c7ff18a13d528e1b4a458422 (diff)
downloadscala-b178e4658b3066b3f2cb2210bc57af9e8de71868.tar.gz
scala-b178e4658b3066b3f2cb2210bc57af9e8de71868.tar.bz2
scala-b178e4658b3066b3f2cb2210bc57af9e8de71868.zip
added conversion from methods to functions usin...
added conversion from methods to functions using prefix operator `&'
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 680de70cf9..8637ff3a60 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -387,8 +387,8 @@ trait Typers requires Analyzer {
error(tree.pos, migrateMsg + " method can be converted to function only if an expected function type is given");
else
error(tree.pos, "missing arguments for "+tree.symbol+tree.symbol.locationString+
- if (tree.symbol.isConstructor) ""
- else ";\nprefix this method with `&' if you want to treat it as a partially applied function")
+ (if (tree.symbol.isConstructor) ""
+ else ";\nprefix this method with `&' if you want to treat it as a partially applied function"))
}
setError(tree)
}