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 | |
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')
-rw-r--r-- | test/files/continuations-run/function6.check | 1 | ||||
-rw-r--r-- | test/files/continuations-run/function6.scala (renamed from test/pending/continuations-run/function6.scala) | 3 | ||||
-rw-r--r-- | test/pending/continuations-run/select.check | 2 | ||||
-rw-r--r-- | test/pending/continuations-run/select.scala | 21 |
4 files changed, 3 insertions, 24 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/pending/continuations-run/function6.scala b/test/files/continuations-run/function6.scala index f1296ae410..1a2792370a 100644 --- a/test/pending/continuations-run/function6.scala +++ b/test/files/continuations-run/function6.scala @@ -7,9 +7,10 @@ object Test { def main(args: Array[String]): Any = { - val g: PartialFunction[Int, Int @cps[Int,Int]] = { case x => 7 } + val g: PartialFunction[Int, Int @cps[Int]] = { case x => 7 } println(reset(g(2))) + } }
\ No newline at end of file diff --git a/test/pending/continuations-run/select.check b/test/pending/continuations-run/select.check deleted file mode 100644 index 620ce84217..0000000000 --- a/test/pending/continuations-run/select.check +++ /dev/null @@ -1,2 +0,0 @@ -8 -8
\ No newline at end of file diff --git a/test/pending/continuations-run/select.scala b/test/pending/continuations-run/select.scala deleted file mode 100644 index faf5842329..0000000000 --- a/test/pending/continuations-run/select.scala +++ /dev/null @@ -1,21 +0,0 @@ -// $Id$ - -import scala.util.continuations._ - - -object Test { - - class Bla { - val x = 8 - } - - def bla = shift { k:(Bla=>Bla) => k(new Bla) } - - // TODO: check whether this also applies to a::shift { k => ... } - - def main(args: Array[String]) = { - println(reset(bla).x) - println(reset(bla.x)) - } - -} |