We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bcbbbd commit 56d0424Copy full SHA for 56d0424
src/compiler/checker.ts
@@ -17107,6 +17107,8 @@ namespace ts {
17107
});
17108
// A protected property is accessible if the property is within the declaring class or classes derived from it
17109
if (!enclosingClass) {
17110
+ // allow PropertyAccessibility if context is in function with this parameter
17111
+ // static member access is disallow
17112
let thisParameter: ParameterDeclaration | undefined;
17113
const thisContainer = getThisContainer(node, /* includeArrowFunctions */ false);
17114
if (flags & ModifierFlags.Static || !thisContainer || !isFunctionLike(thisContainer) || !(thisParameter = getThisParameter(thisContainer)) || !thisParameter.type) {
0 commit comments