diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f98031cf44d..ffbd83456aa 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -11634,7 +11634,7 @@ namespace ts { } } else { - if (!(priority && InferencePriority.NoConstraints && source.flags & (TypeFlags.Intersection | TypeFlags.Instantiable))) { + if (!(priority & InferencePriority.NoConstraints && source.flags & (TypeFlags.Intersection | TypeFlags.Instantiable))) { source = getApparentType(source); } if (source.flags & (TypeFlags.Object | TypeFlags.Intersection)) {