Object literals allow duplicate [Enum.member]: ...
keys
#49666
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Bug Report
π Version & Regression Information
ts stable & nightly
β― Playground Link
Playground Link
π» Code
π Actual behavior
Defining an object literal with duplicate keys throws an error for literal
1
but not for enum memberEnum.foo
π Expected behavior
Defining an object with duplicate keys from enum members throws an error
The text was updated successfully, but these errors were encountered: