diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 74af3cf94f4..2a075ca7fb2 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -20206,7 +20206,7 @@ namespace ts { // this allows to rule out cases when both property and indexer are inherited from the base class let errorNode: Node; if (propDeclaration && - (getSpecialPropertyAssignmentKind(propDeclaration as BinaryExpression) === SpecialPropertyAssignmentKind.ThisProperty || + (propDeclaration.kind === SyntaxKind.BinaryExpression || propDeclaration.name.kind === SyntaxKind.ComputedPropertyName || prop.parent === containingType.symbol)) { errorNode = propDeclaration;