diff options
author | Tiark Rompf <tiark.rompf@epfl.ch> | 2010-03-29 09:55:44 +0000 |
---|---|---|
committer | Tiark Rompf <tiark.rompf@epfl.ch> | 2010-03-29 09:55:44 +0000 |
commit | f500aeb1fda09b3d0c142da1307694ab4dacc883 (patch) | |
tree | cbcc5857c4222fe11e5eb8bb81379d45069c9bbe /test/files/continuations-run/t2934.scala | |
parent | 59da69b707e2e79fbaad4aae7fc347ca1b66a34b (diff) | |
download | scala-f500aeb1fda09b3d0c142da1307694ab4dacc883.tar.gz scala-f500aeb1fda09b3d0c142da1307694ab4dacc883.tar.bz2 scala-f500aeb1fda09b3d0c142da1307694ab4dacc883.zip |
closes 2864.
Diffstat (limited to 'test/files/continuations-run/t2934.scala')
-rw-r--r-- | test/files/continuations-run/t2934.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/continuations-run/t2934.scala b/test/files/continuations-run/t2934.scala new file mode 100644 index 0000000000..a1b8ca9e04 --- /dev/null +++ b/test/files/continuations-run/t2934.scala @@ -0,0 +1,10 @@ +import scala.util.continuations._ + +object Test { + def main(args : Array[String]) { + println(reset { + val x = shift(List(1,2,3).flatMap[Int, List[Int]]) + List(x + 2) + }) + } +} |