mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:21:13 -06:00
Fix typo in inference (#22243)
This commit is contained in:
parent
b8e0009c9b
commit
ec249f7f67
@ -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)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user