summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2009-10-12 13:34:27 +0000
committerPhilipp Haller <hallerp@gmail.com>2009-10-12 13:34:27 +0000
commita0cf7a48c8680a4af5d703b33574579739025b86 (patch)
tree3f81df4cc7bfd3bb5e14185c7d25519e14f9633a /test/files
parent5d61522281b785ba53c34fe38fe6e1ce59bcfac9 (diff)
downloadscala-a0cf7a48c8680a4af5d703b33574579739025b86.tar.gz
scala-a0cf7a48c8680a4af5d703b33574579739025b86.tar.bz2
scala-a0cf7a48c8680a4af5d703b33574579739025b86.zip
Fix for disabled test t2359.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/jvm/t2359.check5
-rw-r--r--test/files/jvm/t2359.scala21
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)
+ }()
+ }()
+ }()
+ }()
+ }()
+ }
+}