diff options
Diffstat (limited to 'test/files/neg/eta-expand-star.scala')
-rw-r--r-- | test/files/neg/eta-expand-star.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/eta-expand-star.scala b/test/files/neg/eta-expand-star.scala new file mode 100644 index 0000000000..5749692522 --- /dev/null +++ b/test/files/neg/eta-expand-star.scala @@ -0,0 +1,8 @@ +object Test { + def f[T](xs: T*): Unit = () + def g[T] = f[T] _ + + def main(args: Array[String]): Unit = { + g(1, 2) + } +} |