summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/function4.scala
blob: ccb432fe935e08116411eaba3614d6d3c8ecd2bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// $Id$

import scala.util.continuations._


object Test {

  def main(args: Array[String]): Unit = {

    val g: () => Int @cps[Int] = () => shift { k: (Int=>Int) => k(7) }

    println(reset(g()))
  }

}