summaryrefslogtreecommitdiff
path: root/test/files/neg/patmatexhaust.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-30 20:01:25 +0000
committerPaul Phillips <paulp@improving.org>2011-04-30 20:01:25 +0000
commitb4749d3b1afb1df236ec48fd3a773aab24a6f74d (patch)
tree81792bd4de8dfb8c2beb6ad1418880947fb6e371 /test/files/neg/patmatexhaust.scala
parent793796eee0769926a3162d69dd23c282ca2d8ba4 (diff)
downloadscala-b4749d3b1afb1df236ec48fd3a773aab24a6f74d.tar.gz
scala-b4749d3b1afb1df236ec48fd3a773aab24a6f74d.tar.bz2
scala-b4749d3b1afb1df236ec48fd3a773aab24a6f74d.zip
Completely to my surprise, found that fixing al...
Completely to my surprise, found that fixing all those sequence issues revealed that the pattern matcher can catch a lot more inexhaustive cases than it has been catching. Fixed most of the inexhaustive matches in the compiler, which had become a bit warnier. No review.
Diffstat (limited to 'test/files/neg/patmatexhaust.scala')
-rw-r--r--test/files/neg/patmatexhaust.scala6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/files/neg/patmatexhaust.scala b/test/files/neg/patmatexhaust.scala
index 4a66649a18..d49c4b207b 100644
--- a/test/files/neg/patmatexhaust.scala
+++ b/test/files/neg/patmatexhaust.scala
@@ -86,10 +86,4 @@ class TestSealedExhaustive { // compile only
case C4() => true
case C2 | C6 => true
}
-
- def redundant() = 1 match { // include this otherwise script won't test this in files/neg
- case 1 =>
- case 1 =>
- }
-
}