/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import assert from "assert";
class o {
    v1: number = 1;
    w1(): string {
        return 'c1';
    }
}
class p extends o {
    z1: number = 2;
}
module o1 {
    export class t {
        a2: number = 3;
        b2(): number {
            return 31;
        }
        c2(): number {
            return 32;
        }
    }
    class t1 extends o1.t {
        c2(): number {
            return 42;
        }
    }
    let u1 = new t1();
    assert(u1.b2() === 31);
    assert(u1.c2() === 42);
}
let q1 = new o();
assert(q1.w1() === 'c1');
let q = new p();
assert(q.z1 === 2);
let s1 = new o1.t();
assert(s1.b2() === 31);
assert(s1.c2() === 32);
