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
Fix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestone
Your inner conditional types being fed to And are distributive. Making them not distributive fixes it. Still, it feels odd to me. Wesley Wigham (@weswigham) is this expected behavior?
Some more weird behavior: If I extract the conditional out into an alias, Test1<A,B> still gets simplified to 1, but if I add another branch to that conditional, Test2<A,B> is not simplified: playground The latter should still be distributive, right?
Fix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestone
Activity
andrewbranch commentedon Nov 10, 2021
Your inner conditional types being fed to
Andare distributive. Making them not distributive fixes it. Still, it feels odd to me. Wesley Wigham (@weswigham) is this expected behavior?webstrand commentedon Nov 10, 2021
Some more weird behavior: If I extract the conditional out into an alias,
Test1<A,B>still gets simplified to1, but if I add another branch to that conditional,Test2<A,B>is not simplified: playground The latter should still be distributive, right?whzx5byb commentedon Nov 10, 2021
If you make
Andlike this,Test<A, B>will resolve to0. That's weird.