summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@typesafe.com>2014-11-10 12:45:43 +0100
committerLukas Rytz <lukas.rytz@typesafe.com>2014-11-10 12:45:43 +0100
commit5a7875fd0e6af19286f3ff125d4ad9b311a7ad7e (patch)
tree8914ab6c9e2ced919b79dbfa3f9437d81ff36084 /test/files/run
parent02c08524b2dee1a83ed82ac945de8a1baaba09ac (diff)
parentcbca4943884d23f0a588471ea68e733170d069af (diff)
downloadscala-5a7875fd0e6af19286f3ff125d4ad9b311a7ad7e.tar.gz
scala-5a7875fd0e6af19286f3ff125d4ad9b311a7ad7e.tar.bz2
scala-5a7875fd0e6af19286f3ff125d4ad9b311a7ad7e.zip
Merge pull request #4101 from adriaanm/sam-ex
[sammy] eta-expansion, overloading, existentials
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/sammy_repeated.check1
-rw-r--r--test/files/run/sammy_repeated.flags1
-rw-r--r--test/files/run/sammy_repeated.scala8
3 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/sammy_repeated.check b/test/files/run/sammy_repeated.check
new file mode 100644
index 0000000000..1cff0f067c
--- /dev/null
+++ b/test/files/run/sammy_repeated.check
@@ -0,0 +1 @@
+WrappedArray(1)
diff --git a/test/files/run/sammy_repeated.flags b/test/files/run/sammy_repeated.flags
new file mode 100644
index 0000000000..e1b37447c9
--- /dev/null
+++ b/test/files/run/sammy_repeated.flags
@@ -0,0 +1 @@
+-Xexperimental \ No newline at end of file
diff --git a/test/files/run/sammy_repeated.scala b/test/files/run/sammy_repeated.scala
new file mode 100644
index 0000000000..c24dc41909
--- /dev/null
+++ b/test/files/run/sammy_repeated.scala
@@ -0,0 +1,8 @@
+trait RepeatedSink { def accept(a: Any*): Unit }
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val f: RepeatedSink = (a) => println(a)
+ f.accept(1)
+ }
+} \ No newline at end of file