summaryrefslogtreecommitdiff
path: root/test/files/neg/t6920.check
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2016-05-04 15:52:01 -0700
committerSom Snytt <som.snytt@gmail.com>2016-05-13 08:36:01 -0700
commita6d5eb507bbeac2055a224a15fd76e7f9425520b (patch)
tree9ef73469b5a29d85be211502f8328dc5fdb97155 /test/files/neg/t6920.check
parent9e30bee0c9363f6cf36a7b65ddbaaa225b57d6a9 (diff)
downloadscala-a6d5eb507bbeac2055a224a15fd76e7f9425520b.tar.gz
scala-a6d5eb507bbeac2055a224a15fd76e7f9425520b.tar.bz2
scala-a6d5eb507bbeac2055a224a15fd76e7f9425520b.zip
SI-8667 Improve too-many-args message
Use removeNames to help diagnose the application. Supplement the error message with how many extra args and any other residual assignments that the user might have thought was a properly named arg. The error message is gradual: succinct for short arg lists, more verbose for longer applications. Very long arg lists are probably generated, so that message is the least colloquial.
Diffstat (limited to 'test/files/neg/t6920.check')
-rw-r--r--test/files/neg/t6920.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/t6920.check b/test/files/neg/t6920.check
index ee4eafb83e..4e33aca3bc 100644
--- a/test/files/neg/t6920.check
+++ b/test/files/neg/t6920.check
@@ -1,4 +1,4 @@
-t6920.scala:9: error: too many arguments for method applyDynamicNamed: (values: Seq[(String, Any)])String
+t6920.scala:9: error: too many arguments (2) for method applyDynamicNamed: (values: Seq[(String, Any)])String
error after rewriting to CompilerError.this.test.applyDynamicNamed("crushTheCompiler")(scala.Tuple2("a", 1), scala.Tuple2("b", 2))
possible cause: maybe a wrong Dynamic method signature?
test.crushTheCompiler(a = 1, b = 2)