File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13467,13 +13467,14 @@ namespace ts {
13467
13467
const containingClass = getContainingClass(node);
13468
13468
if (containingClass) {
13469
13469
const containingType = getTypeOfNode(containingClass);
13470
- const baseTypes = getBaseTypes(<InterfaceType> containingType);
13471
- if (baseTypes.length) {
13470
+ let baseTypes = getBaseTypes(containingType as InterfaceType );
13471
+ while (baseTypes.length) {
13472
13472
const baseType = baseTypes[0];
13473
13473
if (modifiers & ModifierFlags.Protected &&
13474
13474
baseType.symbol === declaration.parent.symbol) {
13475
13475
return true;
13476
13476
}
13477
+ baseTypes = getBaseTypes(baseType as InterfaceType);
13477
13478
}
13478
13479
}
13479
13480
if (modifiers & ModifierFlags.Private) {
You can’t perform that action at this time.
0 commit comments