summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler')
-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)
}