File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18240,14 +18240,14 @@ namespace ts {
18240
18240
const propDeclaration = prop.valueDeclaration;
18241
18241
18242
18242
// index is numeric and property name is not valid numeric literal
18243
- if (indexKind === IndexKind.Number && propDeclaration && ! isNumericName(propDeclaration.name)) {
18243
+ if (indexKind === IndexKind.Number && !( propDeclaration ? isNumericName(propDeclaration.name) : isNumericLiteralName(prop.name) )) {
18244
18244
return;
18245
18245
}
18246
18246
18247
18247
// perform property check if property or indexer is declared in 'type'
18248
18248
// this allows to rule out cases when both property and indexer are inherited from the base class
18249
18249
let errorNode: Node;
18250
- if (propDeclaration && propDeclaration.name.kind === SyntaxKind.ComputedPropertyName || prop.parent === containingType.symbol) {
18250
+ if (propDeclaration && ( propDeclaration.name.kind === SyntaxKind.ComputedPropertyName || prop.parent === containingType.symbol) ) {
18251
18251
errorNode = propDeclaration;
18252
18252
}
18253
18253
else if (indexDeclaration) {
You can’t perform that action at this time.
0 commit comments