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

}