summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2013-08-03 11:02:11 -0700
committerSom Snytt <som.snytt@gmail.com>2013-08-06 11:02:59 -0700
commit9d5c97cb0155c0a2d375be6904eef8f882970615 (patch)
treec8be3a12c2e9dbbbbaabc96132ed0350024802ce /test
parent6917ccab44a592ced4cae7dad1b9b92978748dd5 (diff)
downloadscala-9d5c97cb0155c0a2d375be6904eef8f882970615.tar.gz
scala-9d5c97cb0155c0a2d375be6904eef8f882970615.tar.bz2
scala-9d5c97cb0155c0a2d375be6904eef8f882970615.zip
StringContext#checkLengths reports bad args count
Since interpolator args are of type Any, it's easy to write s(args) instead of s(args: _*). I wonder if Xlint would have warned me about that.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/interpolationArgs.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/interpolationArgs.check b/test/files/run/interpolationArgs.check
index 155991e618..983214cbee 100644
--- a/test/files/run/interpolationArgs.check
+++ b/test/files/run/interpolationArgs.check
@@ -1,2 +1,2 @@
-java.lang.IllegalArgumentException: wrong number of arguments for interpolated string
-java.lang.IllegalArgumentException: wrong number of arguments for interpolated string
+java.lang.IllegalArgumentException: wrong number of arguments (1) for interpolated string with 3 parts
+java.lang.IllegalArgumentException: wrong number of arguments (1) for interpolated string with 1 parts