summaryrefslogtreecommitdiff
path: root/test/files/run/t4935.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t4935.scala')
-rw-r--r--test/files/run/t4935.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t4935.scala b/test/files/run/t4935.scala
new file mode 100644
index 0000000000..18631e2041
--- /dev/null
+++ b/test/files/run/t4935.scala
@@ -0,0 +1,9 @@
+object Test extends App {
+ for (i <- 0 to 1) {
+ val a = Foo
+ }
+}
+
+object Foo {
+ println("hello")
+}