diff options
author | Tiark Rompf <tiark.rompf@epfl.ch> | 2010-04-03 16:07:58 +0000 |
---|---|---|
committer | Tiark Rompf <tiark.rompf@epfl.ch> | 2010-04-03 16:07:58 +0000 |
commit | d1372c1541ca385a500ec53928aad8b7a9fec7fa (patch) | |
tree | 298a67642c7dadb75581b8522a7b33d09a5b3274 /test/files | |
parent | d5c7049d4fe117e26a5e981c2449a966b017af49 (diff) | |
download | scala-d1372c1541ca385a500ec53928aad8b7a9fec7fa.tar.gz scala-d1372c1541ca385a500ec53928aad8b7a9fec7fa.tar.bz2 scala-d1372c1541ca385a500ec53928aad8b7a9fec7fa.zip |
improved cps transform of partial functions.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/continuations-run/function6.check | 1 | ||||
-rw-r--r-- | test/files/continuations-run/function6.scala | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/files/continuations-run/function6.check b/test/files/continuations-run/function6.check new file mode 100644 index 0000000000..c7930257df --- /dev/null +++ b/test/files/continuations-run/function6.check @@ -0,0 +1 @@ +7
\ No newline at end of file diff --git a/test/files/continuations-run/function6.scala b/test/files/continuations-run/function6.scala new file mode 100644 index 0000000000..1a2792370a --- /dev/null +++ b/test/files/continuations-run/function6.scala @@ -0,0 +1,16 @@ +// $Id$ + +import scala.util.continuations._ + + +object Test { + + def main(args: Array[String]): Any = { + + val g: PartialFunction[Int, Int @cps[Int]] = { case x => 7 } + + println(reset(g(2))) + + } + +}
\ No newline at end of file |