summaryrefslogtreecommitdiff
path: root/test/files/neg/t7299.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-03-25 12:40:48 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-03-25 12:45:54 +0100
commitb95ca32062ae980fb45b3e93d8c90219bc1d2530 (patch)
tree0334a78ac5196d391d454d00412cabffa25666c5 /test/files/neg/t7299.check
parentfcc22e22248992abffe2506ddef7c0f7c0b23044 (diff)
downloadscala-b95ca32062ae980fb45b3e93d8c90219bc1d2530.tar.gz
scala-b95ca32062ae980fb45b3e93d8c90219bc1d2530.tar.bz2
scala-b95ca32062ae980fb45b3e93d8c90219bc1d2530.zip
SI-7299 Improve error message for eta-expanding 23+ param method
Before, we got `error: missing arguments for method f`.
Diffstat (limited to 'test/files/neg/t7299.check')
-rw-r--r--test/files/neg/t7299.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t7299.check b/test/files/neg/t7299.check
new file mode 100644
index 0000000000..74340c4841
--- /dev/null
+++ b/test/files/neg/t7299.check
@@ -0,0 +1,7 @@
+t7299.scala:4: error: implementation restricts functions to 22 parameters
+ val eta1 = f _
+ ^
+t7299.scala:5: error: implementation restricts functions to 22 parameters
+ val eta2 = g[Any] _
+ ^
+two errors found