diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 5da7cc7e667..9df086f1bb7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5924,7 +5924,7 @@ namespace ts { } function resolveObjectIntersection(intersection: IntersectionType): IntersectionType | ResolvedType { - if (find(intersection.types, t => !(t.flags & TypeFlags.ObjectType && !couldContainTypeParameters(t)))) { + if (find(intersection.types, t => !(t.flags & TypeFlags.ObjectType) || couldContainTypeParameters(t))) { return intersection; } const properties = getPropertiesOfType(intersection);