diff options
Diffstat (limited to 'tests/run/t4935.scala')
-rw-r--r-- | tests/run/t4935.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/t4935.scala b/tests/run/t4935.scala new file mode 100644 index 000000000..88940be6b --- /dev/null +++ b/tests/run/t4935.scala @@ -0,0 +1,9 @@ +object Test extends dotty.runtime.LegacyApp { + for (i <- 0 to 1) { + val a = Foo + } +} + +object Foo { + println("hello") +} |