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