diff options
Diffstat (limited to 'test')
-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 + } +} |