diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 7bdde91f286..fe9389bce0a 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -11009,7 +11009,7 @@ namespace ts { else if (flow.flags & FlowFlags.Start) { // Check if we should continue with the control flow of the containing function. const container = (flow).container; - if (container && container !== flowContainer && reference.kind !== SyntaxKind.PropertyAccessExpression) { + if (container && container !== flowContainer && reference.kind !== SyntaxKind.PropertyAccessExpression && reference.kind !== SyntaxKind.ThisKeyword) { flow = container.flowNode; continue; }