summaryrefslogblamecommitdiff
path: root/test/files/continuations-run/function6.scala
blob: 13ef88bd9ff961b7ecba5d3b16465d62886e85c5 (plain) (tree)
1
2
3
4
5
6
7
8
9





                                 
 
                                         
 
                                                                
 
                        
 
   
 
 
// $Id$

import scala.util.continuations._


object Test {

  def main(args: Array[String]): Unit = {

    val g: PartialFunction[Int, Int @cps[Int]] = { case x => 7 }

    println(reset(g(2)))

  }

}