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 @@ -20233,7 +20233,10 @@ namespace ts {
20233
20233
// perform property check if property or indexer is declared in 'type'
20234
20234
// this allows to rule out cases when both property and indexer are inherited from the base class
20235
20235
let errorNode: Node;
20236
- if (propDeclaration && (propDeclaration.name.kind === SyntaxKind.ComputedPropertyName || prop.parent === containingType.symbol)) {
20236
+ if (propDeclaration &&
20237
+ (getSpecialPropertyAssignmentKind(propDeclaration as BinaryExpression) === SpecialPropertyAssignmentKind.ThisProperty ||
20238
+ propDeclaration.name.kind === SyntaxKind.ComputedPropertyName ||
20239
+ prop.parent === containingType.symbol)) {
20237
20240
errorNode = propDeclaration;
20238
20241
}
20239
20242
else if (indexDeclaration) {
You can’t perform that action at this time.
0 commit comments