1 2 3 4 5 6 7 8
object Test { def foo = { lazy val s = 42 // needs LazyIntHolder s } def main(args: Array[String]): Unit = println(foo) }