We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a280caf commit 771b42dCopy full SHA for 771b42d
src/compiler/checker.ts
@@ -17790,11 +17790,11 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
17790
const context = createInferenceContext(freshParams, /*signature*/ undefined, InferenceFlags.None);
17791
if (freshMapper) {
17792
const freshCombinedMapper = combineTypeMappers(mapper, freshMapper);
17793
- for (const p of freshParams) {
17794
- if (root.inferTypeParameters.indexOf(p) === -1) {
+ forEach(freshParams, (p, i) => {
+ if (p !== root.inferTypeParameters![i]) {
17795
p.mapper = freshCombinedMapper;
17796
}
17797
- }
+ });
17798
17799
if (!checkTypeDeferred) {
17800
// We don't want inferences from constraints as they may cause us to eagerly resolve the
0 commit comments