mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Properly analyze switch statement bypass control flow (#35087)
* Properly analyze switch statement bypass control flow * Add regression test * Accept new baselines
This commit is contained in:
@@ -19333,7 +19333,7 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
if (bypassFlow) {
|
||||
const flowType = getTypeAtFlowNode(bypassFlow.antecedent);
|
||||
const flowType = getTypeAtFlowNode(bypassFlow);
|
||||
const type = getTypeFromFlowType(flowType);
|
||||
// If the bypass flow contributes a type we haven't seen yet and the switch statement
|
||||
// isn't exhaustive, process the bypass flow type. Since exhaustiveness checks increase
|
||||
|
||||
Reference in New Issue
Block a user