blob: 6b4c5adc417838b495a12639d06368c1fb9b3925 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// $Id$
import scala.util.continuations._
object Test {
def main(args: Array[String]): Unit = {
val g: PartialFunction[Int, Int @cps[Int]] = { case x => 7 }
println(reset(g(2)))
}
}
|