summaryrefslogtreecommitdiff
path: root/test/files/neg/negSeq.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/negSeq.scala')
-rw-r--r--test/files/neg/negSeq.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/neg/negSeq.scala b/test/files/neg/negSeq.scala
new file mode 100644
index 0000000000..5eff5f33ea
--- /dev/null
+++ b/test/files/neg/negSeq.scala
@@ -0,0 +1,8 @@
+object seqapply_convention { // 2005-02-17 see comment in PatternMatcher::isSeqApply
+
+ val x:Seq[Int] = List(1,2,3);
+
+ x.match {
+ case List(1,2,3) => true // type error: type Seq will not work
+ }
+}