summaryrefslogtreecommitdiff
path: root/test/files/run/t5375.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t5375.scala')
-rw-r--r--test/files/run/t5375.scala23
1 files changed, 6 insertions, 17 deletions
diff --git a/test/files/run/t5375.scala b/test/files/run/t5375.scala
index e4b329deae..826ecd841e 100644
--- a/test/files/run/t5375.scala
+++ b/test/files/run/t5375.scala
@@ -1,19 +1,8 @@
-
-
-
-import collection.parallel.CompositeThrowable
-
-
-
-object Test {
-
- def main(args: Array[String]) {
- val foos = (1 to 1000) toSeq;
- try {
- foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
- } catch {
- case CompositeThrowable(thr) => println("Composite throwable")
- }
+object Test extends App {
+ val foos = (1 to 1000).toSeq
+ try
+ foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
+ catch {
+ case ex: RuntimeException => println("Runtime exception")
}
-
}