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
Change treatment of SAMs in overloading resolution
Always consider a function type A as conforming to a corresponding SAM type B, unless
B is a subtype of A.
The unless... part is so that `PartialFunction[A, B]` is seen as strictly better than `A => B`.
This is an alternate fix for #11938 that does not treat FunctionalInterfaces specifically.
0 commit comments