summaryrefslogblamecommitdiff
path: root/test/files/continuations-run/function4.scala
blob: 232b1ec3a6c96042cd6af6c8a1cef2d14b015751 (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: () => Int @cps[Int] = () => shift { k: (Int=>Int) => k(7) }
    
    println(reset(g()))
  }
  
}