mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
add commnet
This commit is contained in:
parent
0bcbbbdd58
commit
56d042468f
@ -17107,6 +17107,8 @@ namespace ts {
|
||||
});
|
||||
// A protected property is accessible if the property is within the declaring class or classes derived from it
|
||||
if (!enclosingClass) {
|
||||
// allow PropertyAccessibility if context is in function with this parameter
|
||||
// static member access is disallow
|
||||
let thisParameter: ParameterDeclaration | undefined;
|
||||
const thisContainer = getThisContainer(node, /* includeArrowFunctions */ false);
|
||||
if (flags & ModifierFlags.Static || !thisContainer || !isFunctionLike(thisContainer) || !(thisParameter = getThisParameter(thisContainer)) || !thisParameter.type) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user