diff options
Diffstat (limited to 'tests/run/t5375.scala')
-rw-r--r-- | tests/run/t5375.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/t5375.scala b/tests/run/t5375.scala new file mode 100644 index 000000000..8c2c06fde --- /dev/null +++ b/tests/run/t5375.scala @@ -0,0 +1,8 @@ +object Test extends dotty.runtime.LegacyApp { + 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") + } +} |