aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/falseView.scala
Commit message (Collapse)AuthorAgeFilesLines
* Disallow subtypes of Function1 acting as implicit conversionsMartin Odersky2017-03-081-0/+7
The new test `falseView.scala` shows the problem. We might create an implicit value of some type that happens to be a subtype of Function1. We might now expect that this gives us an implicit conversion, this is most often unintended and surprising. See the comment in Implicits#discardForView for a discussion why we picked the particular scheme implemented here.