summaryrefslogtreecommitdiff
path: root/test/files/neg/eta-expand-star.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-10-09 19:24:48 +0000
committerPaul Phillips <paulp@improving.org>2011-10-09 19:24:48 +0000
commitbc4468cdd266fc12fe164c1b6ec4da94b71a4129 (patch)
tree4daa2b1a82c17daf9c2f901de953d2fa82ddebe4 /test/files/neg/eta-expand-star.check
parent2c1a1192ce19f84984eb52037fba5b26794ed3fa (diff)
downloadscala-bc4468cdd266fc12fe164c1b6ec4da94b71a4129.tar.gz
scala-bc4468cdd266fc12fe164c1b6ec4da94b71a4129.tar.bz2
scala-bc4468cdd266fc12fe164c1b6ec4da94b71a4129.zip
Flipped varargs eta-expansion behavior.
(T*)U now eta-expands to Seq[T] => U, not T* => U. There is a transition command line switch to get the old behavior for any who may have relied upon it: -Yeta-expand-keeps-star Closes SI-4176, no review.
Diffstat (limited to 'test/files/neg/eta-expand-star.check')
-rw-r--r--test/files/neg/eta-expand-star.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/neg/eta-expand-star.check b/test/files/neg/eta-expand-star.check
new file mode 100644
index 0000000000..6765d504fc
--- /dev/null
+++ b/test/files/neg/eta-expand-star.check
@@ -0,0 +1,4 @@
+eta-expand-star.scala:6: error: too many arguments for method apply: (v1: Seq[T])Unit in trait Function1
+ g(1, 2)
+ ^
+one error found