diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-06-03 18:33:47 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-06-03 18:33:47 +0200 |
commit | c0770edba1f5ba85b5a48f2c2ce68704dbe00087 (patch) | |
tree | 874c93beea0cb95499420b2f7c29781155d08041 /tests/run/t5375.scala | |
parent | 57a2a014593278c752fb645f9005ed16b4447242 (diff) | |
parent | bcf70e27e0eef1b55c2e4afd8f680c0351810073 (diff) | |
download | dotty-c0770edba1f5ba85b5a48f2c2ce68704dbe00087.tar.gz dotty-c0770edba1f5ba85b5a48f2c2ce68704dbe00087.tar.bz2 dotty-c0770edba1f5ba85b5a48f2c2ce68704dbe00087.zip |
Merge pull request #628 from dotty-staging/fix/initializer-deadlocks
Fix/initializer deadlocks
Diffstat (limited to 'tests/run/t5375.scala')
-rw-r--r-- | tests/run/t5375.scala | 13 |
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") } } |