aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t5375.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t5375.scala')
-rw-r--r--tests/run/t5375.scala13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/run/t5375.scala b/tests/run/t5375.scala
index 256f5435e..8c2c06fde 100644
--- a/tests/run/t5375.scala
+++ b/tests/run/t5375.scala
@@ -1,11 +1,8 @@
-object Test {
+object Test extends dotty.runtime.LegacyApp {
val foos = (1 to 1000).toSeq
-
- def main(args: Array[String]): Unit = {
- try
- foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
- catch {
- case ex: RuntimeException => println("Runtime exception")
- }
+ try
+ foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
+ catch {
+ case ex: RuntimeException => println("Runtime exception")
}
}