Skip to content

SI-7187 deprecate eta-expansion of arity 0 #152

Closed
@adriaanm

Description

@adriaanm

Lukas says in scala/scala#4822 (comment):

object Test {
  def foo(): () => String = () => ""
  val f: () => Any = foo

  def main(args: Array[String]): Unit = {
    println(f()) // <function0>
  }
}

Should we emit a deprecation in this case?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions