aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/extractors.scala
Commit message (Collapse)AuthorAgeFilesLines
* Drop the requirement that extractors with `get` must implement ProductMartin Odersky2015-05-051-0/+32
We used to require that the result type of an extractor `get` is a product, or else the type of the `get` itself would be taken as the result type of the unapply. This is now relaxed so that we automatically select with _1, _2, ... as soon as there are multiple argument patterns, and (1) the result type is not a Seq, (2) the number of consecutive product conselectors matches the number of arguments.