summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/trycatch0.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/continuations-run/trycatch0.scala')
-rw-r--r--test/files/continuations-run/trycatch0.scala25
1 files changed, 0 insertions, 25 deletions
diff --git a/test/files/continuations-run/trycatch0.scala b/test/files/continuations-run/trycatch0.scala
deleted file mode 100644
index d0b4a52a30..0000000000
--- a/test/files/continuations-run/trycatch0.scala
+++ /dev/null
@@ -1,25 +0,0 @@
-// $Id$
-
-import scala.util.continuations._
-
-object Test {
-
- def foo = try {
- shift((k: Int=>Int) => k(7))
- } catch {
- case ex: Throwable =>
- 9
- }
-
- def bar = try {
- 7
- } catch {
- case ex: Throwable =>
- shiftUnit0[Int,Int](9)
- }
-
- def main(args: Array[String]): Unit = {
- println(reset { foo + 3 })
- println(reset { bar + 3 })
- }
-}