diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-09-24 10:37:50 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-09-24 10:37:50 +0000 |
commit | cabb954584a0ed6c65dc0ace90ad6af14e00a390 (patch) | |
tree | 32d5c0355b187780e2f8d7871cb9896d5c37dac5 /test/files | |
parent | 87a113f132473036e6b975962fdb5cea8364b532 (diff) | |
download | scala-cabb954584a0ed6c65dc0ace90ad6af14e00a390.tar.gz scala-cabb954584a0ed6c65dc0ace90ad6af14e00a390.tar.bz2 scala-cabb954584a0ed6c65dc0ace90ad6af14e00a390.zip |
Fixed #2359.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/t2359.check | 5 | ||||
-rw-r--r-- | test/files/jvm/t2359.scala | 21 |
2 files changed, 26 insertions, 0 deletions
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) + }() + }() + }() + }() + }() + } +} |