summaryrefslogtreecommitdiff
path: root/test/files/neg/array-not-seq.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-06-16 21:59:16 +0000
committerPaul Phillips <paulp@improving.org>2010-06-16 21:59:16 +0000
commitf750b08d9e8121c32cd433ee167cbc95705429ed (patch)
tree380382b7a2dd2291f9c8231e3d5f29f088e311d7 /test/files/neg/array-not-seq.check
parent9e0618ba29426ea5cb12caf881ce892a1d2365b9 (diff)
downloadscala-f750b08d9e8121c32cd433ee167cbc95705429ed.tar.gz
scala-f750b08d9e8121c32cd433ee167cbc95705429ed.tar.bz2
scala-f750b08d9e8121c32cd433ee167cbc95705429ed.zip
A wholesale reversion of the pattern matcher to...
A wholesale reversion of the pattern matcher to r21939, motivated by the appearance of #3578. Closes #3578, reopens #2800, #3050. Review by moors. (I can't keep saying "no review" when every move I make in here seems to break something.)
Diffstat (limited to 'test/files/neg/array-not-seq.check')
-rw-r--r--test/files/neg/array-not-seq.check11
1 files changed, 1 insertions, 10 deletions
diff --git a/test/files/neg/array-not-seq.check b/test/files/neg/array-not-seq.check
index bd72bb4e13..c16ecdad72 100644
--- a/test/files/neg/array-not-seq.check
+++ b/test/files/neg/array-not-seq.check
@@ -1,16 +1,7 @@
array-not-seq.scala:2: error: An Array will no longer match as Seq[_].
def f1(x: Any) = x.isInstanceOf[Seq[_]]
^
-array-not-seq.scala:4: error: An Array will no longer match as Seq[_].
- case _: Seq[_] => true
- ^
error: An Array will no longer match as Seq[_].
-array-not-seq.scala:16: error: An Array will no longer match as Seq[_].
- case (Some(_: Seq[_]), Nil, _) => 1
- ^
error: An Array will no longer match as Seq[_].
-array-not-seq.scala:15: error: An Array will no longer match as Seq[_].
- def f5(x1: Any, x2: Any, x3: AnyRef) = (x1, x2, x3) match {
- ^
error: An Array will no longer match as Seq[_].
-7 errors found
+four errors found