We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db11fc5 commit 2c60e0aCopy full SHA for 2c60e0a
tests/run/t5375.scala
@@ -1,8 +1,11 @@
1
-object Test extends dotty.runtime.LegacyApp {
+object Test {
2
val foos = (1 to 1000).toSeq
3
- try
4
- foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
5
- catch {
6
- case ex: RuntimeException => println("Runtime exception")
+
+ def main(args: Array[String]): Unit = {
+ try
+ foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
7
+ catch {
8
+ case ex: RuntimeException => println("Runtime exception")
9
+ }
10
}
11
0 commit comments