diff options
Diffstat (limited to 'tests/run/t6052.scala')
-rw-r--r-- | tests/run/t6052.scala | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/run/t6052.scala b/tests/run/t6052.scala index e740f00e1..15bffc1eb 100644 --- a/tests/run/t6052.scala +++ b/tests/run/t6052.scala @@ -5,7 +5,7 @@ -object Test extends dotty.runtime.LegacyApp { +object Test { def seqarr(i: Int) = Array[Int]() ++ (0 until i) def pararr(i: Int) = seqarr(i).par @@ -15,7 +15,9 @@ object Test extends dotty.runtime.LegacyApp { assert(gseq == gpar, (gseq, gpar)) } - for (i <- 0 until 20) check(i, _ > 0) - for (i <- 0 until 20) check(i, _ % 2) - for (i <- 0 until 20) check(i, _ % 4) + def main(args: Array[String]): Unit = { + for (i <- 0 until 20) check(i, _ > 0) + for (i <- 0 until 20) check(i, _ % 2) + for (i <- 0 until 20) check(i, _ % 4) + } } |