We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e91ee14 commit e038290Copy full SHA for e038290
src/compiler/checker.ts
@@ -16185,7 +16185,7 @@ namespace ts {
16185
let propType;
16186
return isMatchingReference(reference, expr.expression) &&
16187
(isDiscriminantProperty(computedType, name) ||
16188
- ((computedType.flags & TypeFlags.UnionOrIntersection) === 0) &&
+ ((computedType.flags & TypeFlags.Union) === 0) &&
16189
(propType = getTypeOfPropertyOfType(computedType, name))
16190
&& isUnitType(propType));
16191
}
0 commit comments