aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t8280.scala
Commit message (Collapse)AuthorAgeFilesLines
* Drop special case around Function1Martin Odersky2017-03-081-3/+3
| | | | | | Now only Scala2 mode treats Function1's as implicit conversions. Instead we introduce a new subclass ImplicitConverter of Function1, instances of which are turned into implicit conversions.
* Disallow subtypes of Function1 acting as implicit conversionsMartin Odersky2017-03-081-1/+2
| | | | | | | | | | 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.
* Update check fileMartin Odersky2015-11-011-2/+4
| | | | and explain why it's different now.
* Disable failing testMartin Odersky2015-11-011-2/+6
| | | | | Dotty delivers an ambiguity error. The comment in the test argues why this is OK.
* Enable tests that succeed.Dmitry Petrashko2015-06-151-0/+82