blob: fda61f41ea9c0627879bd4880e3e63ef6f2ae972 (
plain) (
tree)
|
|
import scala.util.continuations._
object Test {
def foo(x:Int) = {
try {
throw new Exception
shiftUnit0[Int,Int](7)
} catch {
case ex: Throwable =>
val g = (a:Int)=>a
9
}
}
def main(args: Array[String]) {
println(reset(foo(0)))
}
}
|