diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 635f6a30c59f7..d5aca1cad7e33 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -23476,7 +23476,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); }