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





                                 
 
                                               
  
                                               

  
                                        
                             
   
  


 
// $Id$

import scala.util.continuations._


object Test {
 
  def test(x: => Int @cpsParam[String,Int]) = 7
  
  def sym() = shift { k: (Int => String) => 9 }
  
  
  def main(args: Array[String]): Any = {
    test { sym(); sym() }    
  }
  
}