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/t7498.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/t7498.scala')
-rw-r--r-- | tests/run/t7498.scala | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/run/t7498.scala b/tests/run/t7498.scala index a2555c6b1..cab598405 100644 --- a/tests/run/t7498.scala +++ b/tests/run/t7498.scala @@ -5,18 +5,16 @@ -object Test { +object Test extends dotty.runtime.LegacyApp { import scala.collection.concurrent.TrieMap class Collision(val idx: Int) { override def hashCode = idx % 10 } - def main(args: Array[String]): Unit = { - val tm = TrieMap[Collision, Unit]() - for (i <- 0 until 1000) tm(new Collision(i)) = () + val tm = TrieMap[Collision, Unit]() + for (i <- 0 until 1000) tm(new Collision(i)) = () - tm.par.foreach(kv => ()) - } + tm.par.foreach(kv => ()) } |