summaryrefslogtreecommitdiff
path: root/test/pending/run/t3702.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending/run/t3702.scala')
-rw-r--r--test/pending/run/t3702.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/pending/run/t3702.scala b/test/pending/run/t3702.scala
new file mode 100644
index 0000000000..e08fc12e76
--- /dev/null
+++ b/test/pending/run/t3702.scala
@@ -0,0 +1,10 @@
+object Test {
+ def main(args: Array[String]) {
+ foo(Nil, Nil)
+ }
+
+ def foo(h: Any, t: List[Any]) = h match {
+ case 5 :: _ => ()
+ case List(from) => List(from, from, from)
+ }
+}