Skip to content

Commit e038290

Browse files
committed
Do not rule out intersection case
1 parent e91ee14 commit e038290

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
@@ -16185,7 +16185,7 @@ namespace ts {
1618516185
let propType;
1618616186
return isMatchingReference(reference, expr.expression) &&
1618716187
(isDiscriminantProperty(computedType, name) ||
16188-
((computedType.flags & TypeFlags.UnionOrIntersection) === 0) &&
16188+
((computedType.flags & TypeFlags.Union) === 0) &&
1618916189
(propType = getTypeOfPropertyOfType(computedType, name))
1619016190
&& isUnitType(propType));
1619116191
}

0 commit comments

Comments
 (0)