summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-11-21 09:35:44 -0800
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-11-21 09:35:44 -0800
commita0e642b7fe608b869071b690e7907b934b10db5a (patch)
treea07ba7a88be3264f14d34d542ea3f42241d0630f /test
parent1a487a545d63715d10116fce007d6d5519eba6e4 (diff)
parent1fd3a2a289dae54840b091b822c29019d2ccb565 (diff)
downloadscala-a0e642b7fe608b869071b690e7907b934b10db5a.tar.gz
scala-a0e642b7fe608b869071b690e7907b934b10db5a.tar.bz2
scala-a0e642b7fe608b869071b690e7907b934b10db5a.zip
Merge pull request #1645 from scalamacros/ticket/6673
SI-6673 fixes macro problems with eta expansions
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t6673.check1
-rw-r--r--test/files/run/t6673.scala5
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/t6673.check b/test/files/run/t6673.check
new file mode 100644
index 0000000000..ef2aa551dc
--- /dev/null
+++ b/test/files/run/t6673.check
@@ -0,0 +1 @@
+List(x)
diff --git a/test/files/run/t6673.scala b/test/files/run/t6673.scala
new file mode 100644
index 0000000000..115bbdf234
--- /dev/null
+++ b/test/files/run/t6673.scala
@@ -0,0 +1,5 @@
+object Test extends App {
+ def foo(f: String => Array[String])(s: String) = f(s)
+ val test = foo(Array(_)) _
+ println(test("x").toList)
+} \ No newline at end of file