summaryrefslogtreecommitdiff
path: root/test/files/run/syncchannel.scala
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2008-04-17 15:11:34 +0000
committerPhilipp Haller <hallerp@gmail.com>2008-04-17 15:11:34 +0000
commit07567a3ff9b7a160c0cfec525e6c21117ec70aaa (patch)
treeac2c313c8bf8e42c1e84fd76417ee66b5d00195e /test/files/run/syncchannel.scala
parent7086e9a9633ab696da83b7f54259efbc6f97f51c (diff)
downloadscala-07567a3ff9b7a160c0cfec525e6c21117ec70aaa.tar.gz
scala-07567a3ff9b7a160c0cfec525e6c21117ec70aaa.tar.bz2
scala-07567a3ff9b7a160c0cfec525e6c21117ec70aaa.zip
Added test case for t595.
Diffstat (limited to 'test/files/run/syncchannel.scala')
-rw-r--r--test/files/run/syncchannel.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/run/syncchannel.scala b/test/files/run/syncchannel.scala
new file mode 100644
index 0000000000..66ae47fd0a
--- /dev/null
+++ b/test/files/run/syncchannel.scala
@@ -0,0 +1,6 @@
+object Test {
+ def main(args: Array[String]) {
+ val c = new scala.concurrent.SyncChannel[Int]
+ scala.concurrent.ops.par({ c.write(42) }, { println(c.read) })
+ }
+}