summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg/t1929.scala
blob: 02eda9170d9e19ddd3a2d332d6209e109fd0bb60 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// $Id$

import scala.util.continuations._


object Test {
  def main(args : Array[String]) {
    reset {
      println("up")
      val x = shift((k:Int=>String) => k(8) + k(2))
      println("down " + x)
      val y = shift((k:Int=>String) => k(3))
      println("down2 " + y)
      y + x
  	}
  }
}