summaryrefslogtreecommitdiff
path: root/test/files/run/sammy_cbn.scala
blob: b84b2fd8e5318fb728000c7c70740ba619744e7a (plain) (blame)
1
2
3
4
5
6
7
8
9
trait F0[T] { def apply(): T }

object Test extends App {
  def delay[T](v: => T) = (v _): F0[T]

  // should not fail with ClassCastException: $$Lambda$6279/897871870 cannot be cast to F0
  // (also, should not say boe!)
  delay(println("boe!"))
}