diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ed75651e6e..32b3f3e09c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -18207,7 +18207,7 @@ namespace ts { let result = Ternary.False; const saveErrorInfo = captureErrorCalculationState(); - if ((source.flags & TypeFlags.Union || target.flags & TypeFlags.Union) && getConstituentCount(source) * getConstituentCount(target) < 4) { + if ((source.flags & TypeFlags.Union || target.flags & TypeFlags.Union) && getConstituentCount(source) * getConstituentCount(target) < 0) { // We skip caching when source or target is a union with no more than three constituents. result = structuredTypeRelatedTo(source, target, reportErrors, intersectionState | IntersectionState.UnionIntersectionCheck); }