We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44ce3cf commit 5c13401Copy full SHA for 5c13401
1 file changed
src/compiler/checker.ts
@@ -18901,7 +18901,7 @@ namespace ts {
18901
}
18902
18903
18904
- const isPerformingCommonPropertyChecks = (relation !== comparableRelation || relation === comparableRelation && isLiteralType(source)) &&
+ const isPerformingCommonPropertyChecks = (relation !== comparableRelation || !(source.flags & TypeFlags.Union) && isLiteralType(source)) &&
18905
!(intersectionState & IntersectionState.Target) &&
18906
source.flags & (TypeFlags.Primitive | TypeFlags.Object | TypeFlags.Intersection) && source !== globalObjectType &&
18907
target.flags & (TypeFlags.Object | TypeFlags.Intersection) && isWeakType(target) &&
0 commit comments