1/*
2 * Copyright (c) 2021-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
16abstract class A extends B implements C{
17    foo(a: int): void {
18
19    }
20    abstract bar(b: boolean): void;
21    foo(a: byte): int {
22        return 2;
23    }
24    override func(a: int): void {
25
26    }
27}
28
29interface D {
30    foo(a: byte): int;
31}
32
33interface C {
34    interf(a: int, b: int): void;
35}
36
37abstract class H {
38    abstract func(a: int): void;
39    test(a: int): void{
40
41    }
42}
43
44abstract class B extends H {
45    interf(a: int, b: int): void{
46
47    }
48}
49
50interface F {
51    test(a: int): void;
52}
53
54class G extends A implements D, F {
55    override bar(a: boolean): void {
56
57    }
58}
59