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 b8e0009 commit ec249f7Copy full SHA for ec249f7
src/compiler/checker.ts
@@ -11634,7 +11634,7 @@ namespace ts {
11634
}
11635
11636
else {
11637
- if (!(priority && InferencePriority.NoConstraints && source.flags & (TypeFlags.Intersection | TypeFlags.Instantiable))) {
+ if (!(priority & InferencePriority.NoConstraints && source.flags & (TypeFlags.Intersection | TypeFlags.Instantiable))) {
11638
source = getApparentType(source);
11639
11640
if (source.flags & (TypeFlags.Object | TypeFlags.Intersection)) {
0 commit comments