summaryrefslogtreecommitdiff
path: root/test/files/neg/patmatexhaust.scala
Commit message (Collapse)AuthorAgeFilesLines
* Begone t1737...Hubert Plociniczak2011-11-021-11/+11
|
* Finally figured out what was going on with a ce...Paul Phillips2011-05-061-9/+51
| | | | | | | Finally figured out what was going on with a certain class of exhaustiveness checking bugs. Hey moors, you can put away your pins, puppets, and magic sauces. Closes #3098, no review.
* Completely to my surprise, found that fixing al...Paul Phillips2011-04-301-6/+0
| | | | | | | | 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.
* I wrote a warning when nullary methods return U...Paul Phillips2011-04-281-3/+3
| | | | | | | | | | | | | | | I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community.
* Fixing failing test from exhaustiveness patch.Paul Phillips2009-10-181-2/+2
|
* Fix and test cases for ticket #443.Paul Phillips2009-10-171-3/+25
| | | | | | | flags on AnyVal from FINAL|SEALED to ABSTRACT|SEALED. This appears correct and without ill effect, but if anyone spots new anyval oddness you know where to look.
* new pattern matching algoBurak Emir2007-03-221-1/+7
| | | | | | | removed "removeoption" changed SUnit and some tests added useful debug msg in typer
* more changes to make tuples (...)Martin Odersky2007-02-141-3/+3
|
* changed tuple syntax to (...)Martin Odersky2007-02-131-4/+4
|
* exhaustivity reworkedBurak Emir2007-02-051-3/+7
|
* refined exhaustivity checkBurak Emir2007-02-021-0/+4
|
* matching: + exhaustivity check, warningsBurak Emir2007-02-021-0/+59
Iterator: gets mkString method Iterable: only whitespace Definitions: value classes no longer SEALED test cases for exhaustivity + unapply/array