mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-05 21:23:37 -05:00
Update LKG
This commit is contained in:
@@ -83171,7 +83171,7 @@ ${lanes.join("\n")}
|
||||
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
||||
} else {
|
||||
const text = getTextOfPropertyName(member.name);
|
||||
if (isNumericLiteralName(text)) {
|
||||
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
|
||||
error2(member.name, Diagnostics.An_enum_member_cannot_have_a_numeric_name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user