File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -20196,7 +20196,10 @@ namespace ts {
20196
20196
// perform property check if property or indexer is declared in 'type'
20197
20197
// this allows to rule out cases when both property and indexer are inherited from the base class
20198
20198
let errorNode: Node;
20199
- if (propDeclaration && (propDeclaration.name.kind === SyntaxKind.ComputedPropertyName || prop.parent === containingType.symbol)) {
20199
+ if (propDeclaration &&
20200
+ (getSpecialPropertyAssignmentKind(propDeclaration as BinaryExpression) === SpecialPropertyAssignmentKind.ThisProperty ||
20201
+ propDeclaration.name.kind === SyntaxKind.ComputedPropertyName ||
20202
+ prop.parent === containingType.symbol)) {
20200
20203
errorNode = propDeclaration;
20201
20204
}
20202
20205
else if (indexDeclaration) {
You can’t perform that action at this time.
0 commit comments