From 858a5d513779f4af6f12c0a530bdeceb7a7fd4d9 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Mon, 2 Dec 2013 17:10:35 -0800 Subject: Modularize continuations plugin. The continuations plugin and library will still ship with 2.11 (albeit unsupported). They now reside at https://github.com/scala/scala-continuations. --- test/files/continuations-neg/trycatch2.scala | 33 ---------------------------- 1 file changed, 33 deletions(-) delete mode 100644 test/files/continuations-neg/trycatch2.scala (limited to 'test/files/continuations-neg/trycatch2.scala') diff --git a/test/files/continuations-neg/trycatch2.scala b/test/files/continuations-neg/trycatch2.scala deleted file mode 100644 index ee0a180ed6..0000000000 --- a/test/files/continuations-neg/trycatch2.scala +++ /dev/null @@ -1,33 +0,0 @@ -// $Id$ - -import scala.util.continuations._ - -object Test { - - def fatal[T]: T = throw new Exception - def cpsIntStringInt = shift { k:(Int=>String) => k(3); 7 } - def cpsIntIntString = shift { k:(Int=>Int) => k(3); "7" } - - def foo1 = try { - fatal[Int] - cpsIntStringInt - } catch { - case ex: Throwable => - cpsIntStringInt - } - - def foo2 = try { - fatal[Int] - cpsIntStringInt - } catch { - case ex: Throwable => - cpsIntStringInt - } - - - def main(args: Array[String]): Unit = { - println(reset { foo1; "3" }) - println(reset { foo2; "3" }) - } - -} -- cgit v1.2.3