summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/t1820.scala
blob: 893ddab6d12538f8a93c4318113a850ff3e32819 (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]) = test1(true)
}