File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7971,9 +7971,9 @@ namespace ts {
7971
7971
7972
7972
function createFakeInferenceMapper(): TypeMapper {
7973
7973
const fakeSignature = <Signature>{
7974
- typeParameters: []
7974
+ typeParameters: []
7975
7975
};
7976
- return getInferenceMapper( createInferenceContext(fakeSignature, /*inferUnionTypes*/ false, /*useAnyForNoInferences*/ false) );
7976
+ return createInferenceContext(fakeSignature, 0 );
7977
7977
}
7978
7978
7979
7979
function combineTypeMappers(mapper1: TypeMapper, mapper2: TypeMapper): TypeMapper {
@@ -14899,7 +14899,7 @@ namespace ts {
14899
14899
// If inference has failed, use the first constituent type. During checking, the other
14900
14900
// constituents will fail to match, resulting in a nice error message pointing it out.
14901
14901
if (inferred[i] === unknownType) {
14902
- inferred[i] = getInferenceCandidates( context, i) [0] || inferred[i];
14902
+ inferred[i] = context.inferences[i].candidates [0] || inferred[i];
14903
14903
}
14904
14904
}
14905
14905
return getSignatureInstantiation(signature, inferred);
You can’t perform that action at this time.
0 commit comments