You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New strategy for polymorphic overloads with apply members
Instead of doing overload selection directly on the result of the
PolyType which contains unbounded paramrefs, we now first call
`wildApprox` to get rid of the paramrefs. The resulting behavior is
different from what Scala 2 does, but it makes polymorphic overloads
with apply members behave more like polymorphic overloads with a
parameter list, e.g given:
def a(x: Any): Any
def a[T <: Int]: T => T
a(1)
def b(x: Any): Any
def b[T <: Int](x: T): T
b(1)
in both cases the second overload will be selected.
0 commit comments