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

import scala.util.continuations._


object Test {
  def shifted: Unit @suspendable = shift { (k: Unit => Unit) => () }
  def test1(b: => Boolean) = {
    reset {
      if (b) shifted
    }
  }
  def main(args: Array[String]): Unit = test1(true)
}