summaryrefslogblamecommitdiff
path: root/test/files/continuations-neg/function3.scala
blob: 0c3f1667e5c7327e33a0472d0b50f1fa79ac7219 (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 g: () => Int = () => shift { k: (Int=>Int) => k(7) }

    println(reset(g()))
  }

}