mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Use ObjectFlags.EmptyObjectType in addTypeToIntersection
This commit is contained in:
@@ -8515,7 +8515,7 @@ namespace ts {
|
||||
if (flags & TypeFlags.Intersection) {
|
||||
return addTypesToIntersection(typeSet, includes, (<IntersectionType>type).types);
|
||||
}
|
||||
if (getObjectFlags(type) & ObjectFlags.Anonymous && isEmptyObjectType(type)) {
|
||||
if (getObjectFlags(type) & ObjectFlags.EmptyObjectType) {
|
||||
includes |= TypeFlags.EmptyObject;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user