Skip to content

Commit

Permalink
Higher order this parameter inference, like microsoft#31116
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Feb 3, 2020
1 parent 9a357c1 commit 8dd7c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24150,7 +24150,7 @@ namespace ts {
const thisType = getThisTypeOfSignature(signature);
if (thisType) {
const thisArgumentNode = getThisArgumentOfCall(node);
const thisArgumentType = thisArgumentNode ? checkExpression(thisArgumentNode) : voidType;
const thisArgumentType = thisArgumentNode ? checkExpressionWithContextualType(thisArgumentNode, thisType, context, checkMode) : voidType;
inferTypes(context.inferences, thisArgumentType, thisType);
}

Expand Down

0 comments on commit 8dd7c4a

Please sign in to comment.