blob: d7c5043a86777a2cff850b7ba14828f4ae9d4449 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import scala.util.continuations._
object Test extends App {
def foo(x:Int): Int @cps[Int] = x
def bar(x:Int) = return foo(x)
reset {
val res = bar(8)
println(res)
res
}
}
|