Skip to content

Commit ec249f7

Browse files
authored
Fix typo in inference (#22243)
1 parent b8e0009 commit ec249f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11634,7 +11634,7 @@ namespace ts {
1163411634
}
1163511635
}
1163611636
else {
11637-
if (!(priority && InferencePriority.NoConstraints && source.flags & (TypeFlags.Intersection | TypeFlags.Instantiable))) {
11637+
if (!(priority & InferencePriority.NoConstraints && source.flags & (TypeFlags.Intersection | TypeFlags.Instantiable))) {
1163811638
source = getApparentType(source);
1163911639
}
1164011640
if (source.flags & (TypeFlags.Object | TypeFlags.Intersection)) {

0 commit comments

Comments
 (0)