Uh oh!
There was an error while loading. Please reload this page.
Fix of #58996 - #59155
Conversation
Michal Maršálek (MichalMarsalek)
commented
Jul 6, 2024
@microsoft-github-policy-service agree |
| // This means that if the function is called with an argument of type trueType, there can't be anything left in the `else` branch. It must reduce to `never`. | ||
| const falseCondition = createFlowNode(FlowFlags.FalseCondition, expr, antecedent); | ||
| const falseSubtype = getFlowTypeOfReference(param.name, initType, trueType, func, falseCondition); | ||
| const falseSubtype = getReducedType(getFlowTypeOfReference(param.name, initType, trueType, func, falseCondition)); |
There was a problem hiding this comment.
Nice find 👍
Jake Bailey (jakebailey)
commented
Jul 8, 2024
TypeScript Bot (@typescript-bot) test it |
TypeScript Bot (typescript-bot)
commented
Jul 8, 2024
Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready. Everything looks the same! |
TypeScript Bot (typescript-bot)
commented
Jul 8, 2024
Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing Everything looks good! |
TypeScript Bot (typescript-bot)
commented
Jul 8, 2024
Jake Bailey (@jakebailey) Here they are:tscComparison Report - baseline..pr
System info unknown Hosts
Scenarios
Developer Information: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeScript Bot (typescript-bot)
commented
Jul 8, 2024
Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing Everything looks good! |
Jake Bailey (jakebailey)
left a comment
There was a problem hiding this comment.
I believe this is correct, yes?
Jake Bailey (jakebailey)
commented
Feb 20, 2025
I think I meant to merge this back when I reviewed it; I can merge main if you'd like. |
Michal Maršálek (MichalMarsalek)
commented
Feb 20, 2025
Sure! |
Backlogmilestone (required)mainbranchhereby runtestslocallyFixes#58996
The issue was that the type
Animal & Rockwas not getting reduced toneverand therefore the check failed.