summaryrefslogtreecommitdiff
path: root/test/files/continuations-neg/infer2.scala
blob: eaffbc17fc9a4bb0c50ae4e56d871410a502ed07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// $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() }    
  }
  
}