diff options
author | Martin Odersky <odersky@gmail.com> | 2015-06-01 10:05:56 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-06-01 10:05:56 +0200 |
commit | 07ed3f159b79e53874f53a2c5aa2b00aa2ae0ded (patch) | |
tree | 95c82706f92f8156c614b4fd0d59048bf071eeea /tests/run/t5375.scala | |
parent | 57a2a014593278c752fb645f9005ed16b4447242 (diff) | |
download | dotty-07ed3f159b79e53874f53a2c5aa2b00aa2ae0ded.tar.gz dotty-07ed3f159b79e53874f53a2c5aa2b00aa2ae0ded.tar.bz2 dotty-07ed3f159b79e53874f53a2c5aa2b00aa2ae0ded.zip |
Revert "Avoid static initialization deadlock in run tests."
This reverts commit 8f90105dc4e62e78d53b385df1b2eb29f2855183.
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") } } |