summaryrefslogtreecommitdiff
path: root/test/files/run/eta-expand-star.scala
blob: 7717c4bc91ec42ec8dd9508e180d2d63fe38aa48 (plain) (blame)
1
2
3
4
5
6
7
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" +: args))
  }
}