summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
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!") }
+}