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 Nov 22, 2019
1 parent db75d3c commit 54a2399
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Expand Up @@ -23674,7 +23674,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 54a2399

Please sign in to comment.