summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/t3223.scala
blob: efed1ff58192bf20abc984d346503a88e25b4d15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)))
  }

}