summaryrefslogtreecommitdiff
path: root/test/files/run/eta-expand-star2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/eta-expand-star2.scala')
-rw-r--r--test/files/run/eta-expand-star2.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/eta-expand-star2.scala b/test/files/run/eta-expand-star2.scala
new file mode 100644
index 0000000000..eb650788d0
--- /dev/null
+++ b/test/files/run/eta-expand-star2.scala
@@ -0,0 +1,8 @@
+object Test {
+ def f[T](xs: T*): T = xs.head
+ def g[T] = f[T] _
+
+ def main(args: Array[String]): Unit = {
+ println(g("hello"))
+ }
+}