summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/t3223.scala
diff options
context:
space:
mode:
authorTiark Rompf <tiark.rompf@epfl.ch>2010-03-29 09:55:44 +0000
committerTiark Rompf <tiark.rompf@epfl.ch>2010-03-29 09:55:44 +0000
commitf500aeb1fda09b3d0c142da1307694ab4dacc883 (patch)
treecbcc5857c4222fe11e5eb8bb81379d45069c9bbe /test/files/continuations-run/t3223.scala
parent59da69b707e2e79fbaad4aae7fc347ca1b66a34b (diff)
downloadscala-f500aeb1fda09b3d0c142da1307694ab4dacc883.tar.gz
scala-f500aeb1fda09b3d0c142da1307694ab4dacc883.tar.bz2
scala-f500aeb1fda09b3d0c142da1307694ab4dacc883.zip
closes 2864.
Diffstat (limited to 'test/files/continuations-run/t3223.scala')
-rw-r--r--test/files/continuations-run/t3223.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/continuations-run/t3223.scala b/test/files/continuations-run/t3223.scala
new file mode 100644
index 0000000000..4e510178e6
--- /dev/null
+++ b/test/files/continuations-run/t3223.scala
@@ -0,0 +1,19 @@
+import scala.util.continuations._
+object Test {
+
+ def foo(x:Int) = {
+ try {
+ throw new Exception
+ shiftUnit0[Int,Int](7)
+ } catch {
+ case ex =>
+ val g = (a:Int)=>a
+ 9
+ }
+ }
+
+ def main(args: Array[String]) {
+ println(reset(foo(0)))
+ }
+
+} \ No newline at end of file