1 2 3 4 5 6 7 8 9
object Test extends dotty.runtime.LegacyApp { for (i <- 0 to 1) { val a = Foo } } object Foo { println("hello") }