/*
 * 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 a from "assert";
class i {
    num: number = 1;
    method_c1(): string {
        return 'c1';
    }
}
class j extends i {
    num2: number = 2;
}
module s {
    export class C3 {
        prop_c3: number = 3;
        method_c31(): number {
            return 31;
        }
        method_c32(): number {
            return 32;
        }
    }
    class v extends s.C3 {
        method_c32(): number {
            return 42;
        }
    }
    let w = new v();
    a(w.method_c31() === 31);
    a(w.method_c32() === 42);
}
let t = new i();
a(t.method_c1() === 'c1');
let k = new j();
a(k.num2 === 2);
let u = new s.C3();
a(u.method_c31() === 31);
a(u.method_c32() === 32);
