summaryrefslogblamecommitdiff
path: root/test/files/continuations-run/t2934.scala
blob: a1b8ca9e04a1eb33fb4a3ae4fc2c5cf15e3900a8 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                 
             





                                                       
 
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)
   })
  }
}