1/*
2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16
17// fixable
18enum Color {
19    RED,
20    GREEN
21}
22enum Color {
23    YELLOW = 2
24}
25enum Color {
26    BLACK = 3,
27    BLUE
28}
29// ------
30
31// not fixable
32enum C {
33    A = 1
34}
35
36const x = 6
37let y = C.A
38
39enum C{
40    B = x
41}
42// ------
43
44// not fixable
45const d = 6
46
47enum D {
48    A = 1
49}
50
51enum D{
52    B = d
53}
54// ------
55
56// fixable
57enum Str {
58    A = 1,
59    B = "abc"
60}
61
62enum Str{
63    C = 2,
64    D,
65    E = "qwerty"
66}
67// ------
68
69enum Empty {
70
71}
72
73enum Empty {
74
75}
76