mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Normalize effective constraint intersection before checking if source is a part of it (#49956)
This commit is contained in:
@@ -12124,7 +12124,8 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
}
|
||||
return getIntersectionType(constraints);
|
||||
// The source types were normalized; ensure the result is normalized too.
|
||||
return getNormalizedType(getIntersectionType(constraints), /*writing*/ false);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user