summaryrefslogblamecommitdiff
path: root/test/files/continuations-neg/infer2.scala
blob: a890ac1fc46118e84545e2bdfcea811f7270c317 (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() }
  }

}