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
However, under ts version 3.6.4, the results are not as expected
The text was updated successfully, but these errors were encountered:
ghost
changed the title
multiple candidates for the same type variable in contra-variant positions causes an intersection type to be inferred
「Bug」multiple candidates for the same type variable in contra-variant positions causes an intersection type to be inferred
Oct 26, 2019
string & number is an empty intersection (there is no value that can satisfy that type) and now collapses to never eagerly per #31838. It still collapsed to never before that PR, but was lazy and didn't happen until the type was used in a distributive context. Now (as of TS 3.6) it happens immediately.
According to the #21496 PR, there should be
string & number
expected resultsHowever, under ts version 3.6.4, the results are not as expected
The text was updated successfully, but these errors were encountered: