Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Lots of work hardening matching on sequences. | Paul Phillips | 2009-07-07 | 1 | -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/. |