mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-13 13:50:39 -05:00
Fix typo in inference (#22243)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user