diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index b83fa543a899c..4f82ff0d9db13 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -23506,7 +23506,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); }