We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3fb305 commit b321d50Copy full SHA for b321d50
src/compiler/checker.ts
@@ -13467,13 +13467,14 @@ namespace ts {
13467
const containingClass = getContainingClass(node);
13468
if (containingClass) {
13469
const containingType = getTypeOfNode(containingClass);
13470
- const baseTypes = getBaseTypes(<InterfaceType>containingType);
13471
- if (baseTypes.length) {
+ let baseTypes = getBaseTypes(containingType as InterfaceType);
+ while (baseTypes.length) {
13472
const baseType = baseTypes[0];
13473
if (modifiers & ModifierFlags.Protected &&
13474
baseType.symbol === declaration.parent.symbol) {
13475
return true;
13476
}
13477
+ baseTypes = getBaseTypes(baseType as InterfaceType);
13478
13479
13480
if (modifiers & ModifierFlags.Private) {
0 commit comments