blob: 62d639ee72716b11ce9a23f6b57a8181f1f7f60f (
plain) (
tree)
|
|
// $Id$
import scala.util.continuations._
object Test {
def test(x:Int) = x match {
case 7 => shift { k: (Int=>Int) => k(k(k(x))) }
case _ => x
}
def main(args: Array[String]): Unit = {
println(reset(1 + test(7)))
println(reset(1 + test(8)))
}
}
|