From cabb954584a0ed6c65dc0ace90ad6af14e00a390 Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Thu, 24 Sep 2009 10:37:50 +0000 Subject: Fixed #2359. --- test/files/jvm/t2359.check | 5 +++++ test/files/jvm/t2359.scala | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 test/files/jvm/t2359.check create mode 100644 test/files/jvm/t2359.scala (limited to 'test/files') diff --git a/test/files/jvm/t2359.check b/test/files/jvm/t2359.check new file mode 100644 index 0000000000..8a1218a102 --- /dev/null +++ b/test/files/jvm/t2359.check @@ -0,0 +1,5 @@ +1 +2 +3 +4 +5 diff --git a/test/files/jvm/t2359.scala b/test/files/jvm/t2359.scala new file mode 100644 index 0000000000..1b4d5e0a27 --- /dev/null +++ b/test/files/jvm/t2359.scala @@ -0,0 +1,21 @@ +import scala.actors.Futures._ + +object Test { + def main(args: Array[String]) { + val x = future { + System.out.println(1) + future { + System.out.println(2) + future { + System.out.println(3) + future { + System.out.println(4) + future { + System.out.println(5) + }() + }() + }() + }() + }() + } +} -- cgit v1.2.3