You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/checker.ts
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19705,14 +19705,14 @@ namespace ts {
19705
19705
function getTypeFactsOfTypes(types: Type[], isUnion: boolean): TypeFacts {
19706
19706
let result: TypeFacts = TypeFacts.None;
19707
19707
for (const t of types) {
19708
-
const facts = getTypeFacts(t);
19709
-
result |= facts;
19708
+
result |= getTypeFacts(t);
19710
19709
}
19711
19710
if (!isUnion) {
19712
-
// Get the set of postive facts for the intersection by masking with the negative set shifted left, then shift those present positive facts into the negative fact
19713
-
// value range, and unset any of those bits (by negating that mask and then intersecting it with the original value)
19714
-
const positiveFacts = result & (TypeFacts.NegativeTypeofFacts << 7);
19715
-
result &= ~(positiveFacts >> 7);
19711
+
// Get the set of positive facts for the intersection by masking with the negative set shifted left,
19712
+
// then shift those present positive facts into the negative fact value range, and unset any of those
19713
+
// bits (by negating that mask and then intersecting it with the original value)
19714
+
const positiveFacts = result & (TypeFacts.NegativeTypeofFacts >> 8);
0 commit comments