aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t6410.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-05-30 19:04:23 +0200
committerGuillaume Martres <smarter@ubuntu.com>2015-05-30 19:53:31 +0200
commit8f90105dc4e62e78d53b385df1b2eb29f2855183 (patch)
treecd9bac9ad514ce3e592217962ac319d0ce0d34f4 /tests/run/t6410.scala
parentdd80fe09cdf4f83efbdf3b7e88f9c686e2a6c137 (diff)
downloaddotty-8f90105dc4e62e78d53b385df1b2eb29f2855183.tar.gz
dotty-8f90105dc4e62e78d53b385df1b2eb29f2855183.tar.bz2
dotty-8f90105dc4e62e78d53b385df1b2eb29f2855183.zip
Avoid static initialization deadlock in run tests.
See https://github.com/lampepfl/dotty/pull/624#issuecomment-107064519 for a lengthy explanation.
Diffstat (limited to 'tests/run/t6410.scala')
-rw-r--r--tests/run/t6410.scala12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/run/t6410.scala b/tests/run/t6410.scala
index 0855ffecd..51aaad839 100644
--- a/tests/run/t6410.scala
+++ b/tests/run/t6410.scala
@@ -1,9 +1,11 @@
-object Test extends dotty.runtime.LegacyApp {
- val x = collection.parallel.mutable.ParArray.range(1,10) groupBy { _ % 2 } mapValues { _.size }
- println(x)
- val y = collection.parallel.immutable.ParVector.range(1,10) groupBy { _ % 2 } mapValues { _.size }
- println(y)
+object Test {
+ def main(args: Array[String]): Unit = {
+ val x = collection.parallel.mutable.ParArray.range(1,10) groupBy { _ % 2 } mapValues { _.size }
+ println(x)
+ val y = collection.parallel.immutable.ParVector.range(1,10) groupBy { _ % 2 } mapValues { _.size }
+ println(y)
+ }
}