Make isNumericComputedName call checkComputedPropertyName

This commit is contained in:
Jason Freeman
2015-01-21 17:05:32 -08:00
parent f7a8ba28ff
commit 12fc41843b

View File

@@ -5385,7 +5385,7 @@ module ts {
function isNumericComputedName(name: ComputedPropertyName): boolean {
// It seems odd to consider an expression of type Any to result in a numeric name,
// but this behavior is consistent with checkIndexedAccess
return isTypeOfKind(checkExpression(name.expression), TypeFlags.Any | TypeFlags.NumberLike);
return isTypeOfKind(checkComputedPropertyName(name), TypeFlags.Any | TypeFlags.NumberLike);
}
function isNumericLiteralName(name: string) {