From d1372c1541ca385a500ec53928aad8b7a9fec7fa Mon Sep 17 00:00:00 2001 From: Tiark Rompf Date: Sat, 3 Apr 2010 16:07:58 +0000 Subject: improved cps transform of partial functions. --- test/pending/continuations-run/function6.scala | 15 --------------- test/pending/continuations-run/select.check | 2 -- test/pending/continuations-run/select.scala | 21 --------------------- 3 files changed, 38 deletions(-) delete mode 100644 test/pending/continuations-run/function6.scala delete mode 100644 test/pending/continuations-run/select.check delete mode 100644 test/pending/continuations-run/select.scala (limited to 'test/pending') diff --git a/test/pending/continuations-run/function6.scala b/test/pending/continuations-run/function6.scala deleted file mode 100644 index f1296ae410..0000000000 --- a/test/pending/continuations-run/function6.scala +++ /dev/null @@ -1,15 +0,0 @@ -// $Id$ - -import scala.util.continuations._ - - -object Test { - - def main(args: Array[String]): Any = { - - val g: PartialFunction[Int, Int @cps[Int,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)) - } - -} -- cgit v1.2.3