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
16declare function print(str:any):string;
17let obj:{a:number, b:string}={
18    a:1,
19    b:"str",
20}
21print(obj.a);
22print(obj.b);
23
24class A {
25    data: {
26        runs: number,
27        elapsed: number
28    };
29    constructor() {
30    }
31
32    Measure(): void {
33        var elapsed: number = 0;
34        this.data = {runs: 0, elapsed: 0}
35        elapsed = 11.1;
36
37        this.data.elapsed += elapsed;
38        print(this.data.elapsed)
39    }
40}
41
42let a = new A();
43a.Measure();
44
45const o46 = {
46    3503: 4096,
47    "maxByteLength": 4096,
48};
49
50const o48 = {
51    "maxByteLength": 3012855560,
52};
53
54print(o46[3503]);
55