summaryrefslogtreecommitdiff
path: root/test/files/run/t7899.scala
blob: 5879d4b9fef552f9c13a47531df64826017c643a (plain) (blame)
1
2
3
4
5
object Test extends App {
  def id[A](a: => A): A = null.asInstanceOf[A]
  def foo(f: (=> Int) => Int) = () => f(???)
  foo(id)() // should be allowed and not throw ???
}