summaryrefslogtreecommitdiff
path: root/test/files/pos/t5589.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6968 Simple Tuple patterns aren't irrefutableJason Zaugg2013-01-271-22/+0
| | | | | | | | | | | | Reverts part of c82ecab. The parser can't assume that a pattern `(a, b)` will match, as results of `.isInstanceOf[Tuple2]` can't be statically known until after the typer. The reopens SI-1336, SI-5589 and SI-4574, in exchange for fixing this regression SI-6968. Keeping all of those fixed will require a better definition of irrefutability, and some acrobatics to ensure safe passage to the ambiguous trees through typechecking.
* Restore irrefutability commits.Paul Phillips2012-03-201-0/+22
| | | | This reverts commit d8ba5d091e5641553b438ef9930a6023a2709dcd.
* Revert irrefutability commits.Paul Phillips2012-03-201-22/+0
| | | | | Temporary reversion of irrefutability commits in interests of stable milestone. Expect to restore shortly.
* Finally did something about broken irrefutability.Paul Phillips2012-03-191-0/+22
The parser has always been confused about tuple patterns in for comprehensions. It thinks it can fail to recognize an irrefutable pattern and have it removed in refchecks, but it is sadly mistaken, because the unnecessary filter has a tendency to fail the compile in typer. Look more intently for irrefutable patterns and don't insert the unnecessary filter. Closes SI-5589, SI-1336.