Skip to content

Commit

Permalink
Fixed rebase errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gcnew committed May 26, 2017
1 parent 24f2945 commit 69b2e7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7971,9 +7971,9 @@ namespace ts {

function createFakeInferenceMapper(): TypeMapper {
const fakeSignature = <Signature>{
typeParameters: []
typeParameters: []
};
return getInferenceMapper(createInferenceContext(fakeSignature, /*inferUnionTypes*/ false, /*useAnyForNoInferences*/ false));
return createInferenceContext(fakeSignature, 0);
}

function combineTypeMappers(mapper1: TypeMapper, mapper2: TypeMapper): TypeMapper {
Expand Down Expand Up @@ -14899,7 +14899,7 @@ namespace ts {
// If inference has failed, use the first constituent type. During checking, the other
// constituents will fail to match, resulting in a nice error message pointing it out.
if (inferred[i] === unknownType) {
inferred[i] = getInferenceCandidates(context, i)[0] || inferred[i];
inferred[i] = context.inferences[i].candidates[0] || inferred[i];
}
}
return getSignatureInstantiation(signature, inferred);
Expand Down

0 comments on commit 69b2e7c

Please sign in to comment.