1/*
2 * Copyright (c) 2022 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
17enum tsEnum3 {
18    a,
19    b = 10 + 10 * 10 / 2 -1,
20    c = 3,
21    d = 1 << 5,
22    "e"
23}
24
25enum tsEnum3 {
26    f = d + tsEnum3.c + 10,
27    g = 20 + 30 * 2 && 1,
28    h = "abcd".length,
29    i = "str" + "_i"
30}
31
32print(tsEnum3.a);
33print(tsEnum3.b);
34print(tsEnum3.e);
35print(tsEnum3.f);
36print(tsEnum3.g);
37print(tsEnum3.h);
38print(tsEnum3.i);
39
40print(tsEnum3[33]);
41print(tsEnum3[45]);
42print(tsEnum3[4]);
43print(tsEnum3["str" + "_i"]);