diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-12-21 19:28:18 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-12-21 19:28:18 +0000 |
commit | 169b05aa40915fd805d29a40f95877402320cca3 (patch) | |
tree | 8c885ee1b2873a8ce00aeb2996d1021f2ab29b1f /test/files | |
parent | a326f40dbf25e50976d17a3a90bdd2dc5e37a87e (diff) | |
download | scala-169b05aa40915fd805d29a40f95877402320cca3.tar.gz scala-169b05aa40915fd805d29a40f95877402320cca3.tar.bz2 scala-169b05aa40915fd805d29a40f95877402320cca3.zip |
closed #1449. review by community.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/jvm/t1449.check | 1 | ||||
-rw-r--r-- | test/files/jvm/t1449.scala | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/files/jvm/t1449.check b/test/files/jvm/t1449.check new file mode 100644 index 0000000000..d81cc0710e --- /dev/null +++ b/test/files/jvm/t1449.check @@ -0,0 +1 @@ +42 diff --git a/test/files/jvm/t1449.scala b/test/files/jvm/t1449.scala new file mode 100644 index 0000000000..08c153afc0 --- /dev/null +++ b/test/files/jvm/t1449.scala @@ -0,0 +1,15 @@ +import scala.actors.Actor._ +import scala.actors.Future +import scala.actors.Futures._ +object Test { + def main(args: Array[String]) { + val a = actor { + react { + case ft: Future[a] => + println(ft()) + } + } + val ft = future { 42 } + a ! ft + } +} |