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
Fixscala#16405 - wildcards prematurely resolving to Nothing
This was a problem because it could it get in the way of some
metaprogramming techniques. The main issue was the fact that when typing
functions, the type inference would first look at the types from the
source method (resolving type wildcards to Nothing) and only after that,
it could look at the target method.
Now, in the case of wildcards we delay the resolution
from the source method until later, after which it is resolved according
to the target method. We also modify the targettype resolution method
a bit, as just applying the above procedure would fail some of the
tests, eg. val y1: Function1[_, Nothing] = x => x
would be typed as Function1[Any, Nothing], which was incorrect.
0 commit comments