diff options
author | Martin Odersky <odersky@gmail.com> | 2009-10-16 15:38:40 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-10-16 15:38:40 +0000 |
commit | 136c1cce62ab8a35d7f0a515d7456fe4764611c3 (patch) | |
tree | 8dd0f923e82158ea72f5ccd997bd96dba8185c7c /test/files/jvm/sync-var.scala | |
parent | 8ce658f6653bc6fedb7c7f43f9e307fe55847297 (diff) | |
download | scala-136c1cce62ab8a35d7f0a515d7456fe4764611c3.tar.gz scala-136c1cce62ab8a35d7f0a515d7456fe4764611c3.tar.bz2 scala-136c1cce62ab8a35d7f0a515d7456fe4764611c3.zip |
moved Range and GenericRange to collection.immu...
moved Range and GenericRange to collection.immutable, with alias for
Range in scala package object; made Range strict. moved from filter to
withFilter in translation for for expressions.
Diffstat (limited to 'test/files/jvm/sync-var.scala')
-rw-r--r-- | test/files/jvm/sync-var.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/jvm/sync-var.scala b/test/files/jvm/sync-var.scala index aa6ae9fa34..8a6c2badea 100644 --- a/test/files/jvm/sync-var.scala +++ b/test/files/jvm/sync-var.scala @@ -10,7 +10,7 @@ val sum = new AtomicInteger val q = new scala.concurrent.SyncVar[Int] -val producers = (1 to 3).force map { z => new Thread { +val producers = (1 to 3) map { z => new Thread { override def run() { var again = true while (again) { @@ -23,7 +23,7 @@ val producers = (1 to 3).force map { z => new Thread { } } } -val summers = (1 to 7).force map { z => new Thread { +val summers = (1 to 7) map { z => new Thread { override def run() { val x = j.decrementAndGet() if (x >= 0) { |