summaryrefslogtreecommitdiff
path: root/test/pending/continuations-run/foreach.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
commitb6778be91900b8161e705dc2598ef7af86842b0b (patch)
treed15e8ec18a37eec212f50f1ace27714d7e7d4d34 /test/pending/continuations-run/foreach.scala
parentac6c76f26d884a94d0c9ff54f055d3f9ab750bac (diff)
downloadscala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.gz
scala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.bz2
scala-b6778be91900b8161e705dc2598ef7af86842b0b.zip
Begone t1737...
Diffstat (limited to 'test/pending/continuations-run/foreach.scala')
-rw-r--r--test/pending/continuations-run/foreach.scala22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/pending/continuations-run/foreach.scala b/test/pending/continuations-run/foreach.scala
index 4daade452c..76823e7604 100644
--- a/test/pending/continuations-run/foreach.scala
+++ b/test/pending/continuations-run/foreach.scala
@@ -5,16 +5,16 @@ import scala.util.continuations._
import scala.util.continuations.Loops._
object Test {
-
+
def main(args: Array[String]): Any = {
-
-
+
+
reset {
-
+
val list = List(1,2,3,4,5)
-
+
for (x <- list.suspendable) {
-
+
shift { k: (Unit => Unit) =>
println(x)
if (x < 3)
@@ -22,12 +22,12 @@ object Test {
else
println("enough is enough")
}
-
+
}
-
+
}
-
-
+
+
}
-
+
} \ No newline at end of file