1# ``enum`` declaration merging is not supported 2 3Rule ``arkts-no-enum-merging`` 4 5**Severity: error** 6 7ArkTS does not support merging declarations for ``enum``. Keep the 8declaration of each ``enum`` compact in the codebase. 9 10 11## TypeScript 12 13 14``` 15 16 enum Color { 17 RED, 18 GREEN 19 } 20 enum Color { 21 YELLOW = 2 22 } 23 enum Color { 24 BLACK = 3, 25 BLUE 26 } 27 28``` 29 30## ArkTS 31 32 33``` 34 35 enum Color { 36 RED, 37 GREEN, 38 YELLOW, 39 BLACK, 40 BLUE 41 } 42 43``` 44 45 46