diff options
Diffstat (limited to 'tests/untried/neg/eta-expand-star-deprecation.scala')
-rw-r--r-- | tests/untried/neg/eta-expand-star-deprecation.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/untried/neg/eta-expand-star-deprecation.scala b/tests/untried/neg/eta-expand-star-deprecation.scala new file mode 100644 index 000000000..574969252 --- /dev/null +++ b/tests/untried/neg/eta-expand-star-deprecation.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) + } +} |