summaryrefslogtreecommitdiff
path: root/test/files/neg/t7187.scala
blob: 45d33f06af31d833e51a08c1482b283fbbc757c8 (plain) (blame)
1
2
3
4
5
6
class EtaExpandZeroArg {
  def foo(): () => String = () => ""
  val f: () => Any = foo

  // f() would evaluate to <function0> instead of ""
}