summaryrefslogblamecommitdiff
path: root/test/files/continuations-neg/function2.scala
blob: 402c6dcad80aaea42917e4b1b832195929927e3b (plain) (tree)
1
2
3
4
5
6
7
8
9





                                 
 
                                        
    

                                  
    

                       
  
 
// $Id$

import scala.util.continuations._


object Test {
 
  def main(args: Array[String]): Any = {
    
    val f = () => 7
    val g: () => Int @cps[Int] = f
    
    println(reset(g()))
  }
  
}