aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t3726.scala
blob: fefc29f11190290bd40c7b291b7d2e4f4f307e58 (plain) (tree)
1
2
3
4
5
6
7
8







                                                 
object Test extends dotty.runtime.LegacyApp {
  def test(f: () => Int) = {
    val x = f()
    5
  }

  println(test(() => { println("hi there"); 0 }))
}