summaryrefslogtreecommitdiff
path: root/test/pending/continuations-run/t2864.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/continuations-run/t2864.scala')
-rw-r--r--test/pending/continuations-run/t2864.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/pending/continuations-run/t2864.scala b/test/pending/continuations-run/t2864.scala
new file mode 100644
index 0000000000..291e739332
--- /dev/null
+++ b/test/pending/continuations-run/t2864.scala
@@ -0,0 +1,18 @@
+// $Id$
+
+import scala.util.continuations._
+
+
+
+object Test {
+
+ def double[B](n : Int)(k : Int => B) : B = k(n * 2)
+
+ def main(args : Array[String]) {
+ reset {
+ val result1 = shift(double[Unit](100))
+ val result2 = shift(double[Unit](result1))
+ println(result2)
+ }
+ }
+} \ No newline at end of file