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
{{ message }}
Repository navigation
Method returning index type breaks type interference of union types #30717
We don't even understand why the tmp.get call was allowed in the first place? Generic signatures should not have unified across union type boundaries... 😕
Ryan Cavanaugh (@RyanCavanaugh) there is some additional code in #31023 that makes the call not-an-error, as the type parameters and argument lists in use are identical, so unifying them isn't so bad.
Activity
RyanCavanaugh commentedon Apr 2, 2019
Simplified very slightly
Not a regression - this has been the behavior since 2.1.
RyanCavanaugh commentedon Apr 2, 2019
We don't even understand why the
tmp.getcall was allowed in the first place? Generic signatures should not have unified across union type boundaries... 😕weswigham commentedon Jul 15, 2019
I have a PR open here, but IIRC a recent change anders made should have also fixed this - I'll check.
RyanCavanaugh commentedon Oct 29, 2019
This now works the way we want it to - the call to
getis flagged as an error.weswigham commentedon Oct 29, 2019
Ryan Cavanaugh (@RyanCavanaugh) there is some additional code in #31023 that makes the call not-an-error, as the type parameters and argument lists in use are identical, so unifying them isn't so bad.