Normalize effective constraint intersection before checking if source is a part of it (#49956)

This commit is contained in:
Jake Bailey
2022-07-27 10:06:01 -07:00
committed by GitHub
parent adfb20fbeb
commit 8d0c72d5e0
10 changed files with 541 additions and 1 deletions

View File

@@ -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;
}