summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorDavid MacIver <david.maciver@gmail.com>2008-10-26 12:52:21 +0000
committerDavid MacIver <david.maciver@gmail.com>2008-10-26 12:52:21 +0000
commitced4ddfef6b26f5aa84960289bb08c4cb883d071 (patch)
treecafb660fe0acce6d8b141d618b03ae3cc863cb23 /test/files/run
parentbd61de26a34e6ca8f09b1467ec595d829bb6ded3 (diff)
downloadscala-ced4ddfef6b26f5aa84960289bb08c4cb883d071.tar.gz
scala-ced4ddfef6b26f5aa84960289bb08c4cb883d071.tar.bz2
scala-ced4ddfef6b26f5aa84960289bb08c4cb883d071.zip
Fix to #1450. Moved test from pending.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/matchonstream.check1
-rw-r--r--test/files/run/matchonstream.scala3
2 files changed, 4 insertions, 0 deletions
diff --git a/test/files/run/matchonstream.check b/test/files/run/matchonstream.check
new file mode 100644
index 0000000000..3dc3aa5164
--- /dev/null
+++ b/test/files/run/matchonstream.check
@@ -0,0 +1 @@
+It worked!
diff --git a/test/files/run/matchonstream.scala b/test/files/run/matchonstream.scala
new file mode 100644
index 0000000000..d38d81d9fc
--- /dev/null
+++ b/test/files/run/matchonstream.scala
@@ -0,0 +1,3 @@
+object Test extends Application{
+ Stream.from(1) match { case Stream(1, 2, x @_*) => println("It worked!") }
+}