summaryrefslogtreecommitdiff
path: root/test/pending/continuations-run/select.scala
blob: faf584232977424a89e76604745cfc993d408f10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// $Id$

import scala.util.continuations._


object Test {

  class Bla {
    val x = 8
  }

  def bla = shift { k:(Bla=>Bla) => k(new Bla) }

  // TODO: check whether this also applies to a::shift { k => ... }

  def main(args: Array[String]) = {
    println(reset(bla).x)
    println(reset(bla.x))
  }

}