summaryrefslogtreecommitdiff
path: root/test/files/pos/userdefined_apply.scala
Commit message (Collapse)AuthorAgeFilesLines
* Improvements based on reviews by Lukas & JasonAdriaan Moors2017-04-061-0/+18
|
* Allow user-defined `[un]apply` in case companionAdriaan Moors2017-04-051-0/+36
Don't emit a synthetic `apply` (or `unapply`) when it would clash with an existing one. This allows e.g., a `private apply`, along with a `case class` with a `private` constructor. We have to retract the synthetic method in a pretty roundabout way, as we need the other methods and the owner to be completed already. Unless we have to complete the synthetic `apply` while completing the user-defined one, this should not be a problem. If this does happen, this implies there's a cycle in computing the user-defined signature and the synthetic one, which is not allowed.