blob: 893ddab6d12538f8a93c4318113a850ff3e32819 (
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]) = test1(true)
}
|