1/*
2 * Copyright (c) 2022-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
16let a = Symbol.asyncIterator;
17let b = Symbol.hasInstance;
18let c = Symbol.isConcatSpreadable;
19let d = Symbol.iterator;
20let e = Symbol.match;
21let f = Symbol.replace;
22let g = Symbol.search;
23let h = Symbol.species;
24let i = Symbol.split;
25let j = Symbol.toPrimitive;
26let k = Symbol.toStringTag;
27let l = Symbol.unscopables;
28
29let m = Symbol();
30
31const sc = Symbol();
32
33let id = Symbol.for("item");
34
35let lambda = () => Symbol();
36
37class TestClass {
38  static readonly symStaticField: Symbol = Symbol();
39  private symField = Symbol();
40
41  static staticSymbolMethod() {
42    let sv = Symbol();
43  }
44
45  symbolMethod() {
46    let sv = Symbol();
47  }
48
49  methodRet(): Symbol {
50    return Symbol();
51  }
52}
53
54class BIter  {
55  [Symbol.iterator] = () => {
56    return 1;
57  };
58}
59