blob: 7de6ccabefc18b414365bef89edb9d1791f0941b (
plain) (
tree)
|
|
// $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)
}
|