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 2beeb8b commit b9aec28Copy full SHA for b9aec28
src/compiler/checker.ts
@@ -24004,6 +24004,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
24004
// we perform type inference (i.e. a type parameter of a generic function). We cache
24005
// results for union and intersection types for performance reasons.
24006
function couldContainTypeVariables(type: Type): boolean {
24007
+ if (type.flags & TypeFlags.Intrinsic) return false;
24008
const objectFlags = getObjectFlags(type);
24009
if (objectFlags & ObjectFlags.CouldContainTypeVariablesComputed) {
24010
return !!(objectFlags & ObjectFlags.CouldContainTypeVariables);
0 commit comments