Skip to content

Commit

Permalink
Add missing 'break' statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Nov 20, 2020
1 parent dbe4a57 commit d2e3a35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14333,6 +14333,7 @@ namespace ts {
// doesn't immediately resolve to 'string' instead of being deferred.
if (inferredExtendsType.flags & TypeFlags.AnyOrUnknown || isTypeDefinitelyAssignableTo(checkType, inferredExtendsType)) {
result = instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper);
break;
}
}
// Return a deferred type for a check that is neither definitely true nor definitely false
Expand Down

0 comments on commit d2e3a35

Please sign in to comment.