| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
and explain why it's different now.
|
|
|
|
|
| |
Dotty delivers an ambiguity error. The comment in the test argues why
this is OK.
|
|
|