diff options
Diffstat (limited to 'test/pending/continuations-run/foreach.scala')
-rw-r--r-- | test/pending/continuations-run/foreach.scala | 22 |
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 |