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
This blows up on the call to fn2 saying that type parameter T does not conform to upper bound X[_,_]. While this is true, we just matched a to aa which is of type B[f], where f should by construction have the correct bounds. Somehow Dotty is considering f === T, ignoring changes in bounds due to the match.
expectation
This code compiles without the error described above.
Note: this might be related to #6697, since that looks similar but on the type level
The text was updated successfully, but these errors were encountered:
minimized code
This blows up on the call to
fn2
saying that type parameterT
does not conform to upper boundX[_,_]
. While this is true, we just matcheda
toaa
which is of typeB[f]
, wheref
should by construction have the correct bounds. Somehow Dotty is consideringf === T
, ignoring changes in bounds due to the match.expectation
This code compiles without the error described above.
Note: this might be related to #6697, since that looks similar but on the type level
The text was updated successfully, but these errors were encountered: