/* * 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. */ abstract class method_full { foo(): void { } foo_int(b : double, c : char, i : int): int { } foo_bool(d : double, c : char, ... i: int[]): boolean { } private final foo_private(d : double): int { } public final foo_final(d : double): double { } protected static foo_final(i : int): boolean { } protected abstract foo_abstract(): int ; private native foo_native(): int ; } /* @@? 19:5 Error TypeError: Function with a non void return type must return a value. */ /* @@? 21:5 Error TypeError: Function with a non void return type must return a value. */ /* @@? 23:19 Error TypeError: Function with a non void return type must return a value. */ /* @@? 25:18 Error TypeError: Function with a non void return type must return a value. */ /* @@? 27:22 Error TypeError: Function with a non void return type must return a value. */