summaryrefslogtreecommitdiff
path: root/test/files/neg/pat_unreachable.check
Commit message (Collapse)AuthorAgeFilesLines
* Lots of work hardening matching on sequences.Paul Phillips2009-07-071-0/+7
one long-standing bug which actually had a test case testing its bugginess (which is to say, when I fixed the bug, the test case failed.) This: - def doMatch4(xs:Seq[Char]) = xs match { - case Seq(x, y, _*) => x::y::Nil - case Seq(x, y, z, w) => List(z,w) // redundant! - } ...should never have compiled - which must have been recognized on some level given the "redundant!" comment, but it never made it into neg/.