summaryrefslogtreecommitdiff
path: root/test/continuations/neg/function0.scala
blob: 4112ee3835b5b88e23d0524a12686305743990dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// $Id$

import scala.util.continuations._


object Test {

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

    val f = () => shift { k: (Int=>Int) => k(7) }
    val g: () => Int = f

    println(reset(g()))
  }

}