Skip to content

Commit 6fdc7e3

Browse files
committed
getBaseConstraintOfType -> getBaseConstraintOrType
1 parent b6a836a commit 6fdc7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15274,7 +15274,7 @@ namespace ts {
1527415274
if (!(hasDefaultClause || (type.flags & TypeFlags.Union))) {
1527515275
let impliedType = getTypeWithFacts(getUnionType(clauseWitnesses.map(getTypeFromName)), switchFacts);
1527615276
if (impliedType.flags & TypeFlags.Union) {
15277-
impliedType = getAssignmentReducedType(impliedType as UnionType, getBaseConstraintOfType(type) || type);
15277+
impliedType = getAssignmentReducedType(impliedType as UnionType, getBaseConstraintOrType(type));
1527815278
}
1527915279
if (isTypeSubtypeOf(impliedType, type)) {
1528015280
return impliedType;

0 commit comments

Comments
 (0)