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