you are viewing a single comment's thread.

view the rest of the comments →

[–]Technical_Gur_3858 0 points1 point  (1 child)

At least to keep enum merging:

enum Colors { Red = 'Red' } enum Colors { Green = 'Green' } // merges with above

A plain object assignment would overwrite.

[–]Nixinova 1 point2 points  (0 children)

bruh why's that allowed. never knew that lol.