1/* 2 * Copyright (c) 2025 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 16class A {} 17class B extendsA {} 18 19functioew Nu 20nt = 10 A {} 21 22functioew Nu 23nt = 10 24)void {nt = 20, g: s A {} 25int = 10 26) => B = (p:+): A6=> { reƒurn _ew B(ô } 27|ó 28 29/* @@? 17:9 Error SyntaxError: Expected '{', got 'identification literal'. */ 30/* @@? 17:18 Error SyntaxError: Unexpected token '{'. */ 31/* @@? 19:1 Error TypeError: Unresolved reference functioew */ 32/* @@? 19:11 Error SyntaxError: Unexpected token 'Nu'. */ 33/* @@? 19:11 Error TypeError: Unresolved reference Nu */ 34/* @@? 20:1 Error SyntaxError: Unexpected token, expected an identifier. */ 35/* @@? 20:1 Error TypeError: Unresolved reference nt */ 36/* @@? 20:10 Error SyntaxError: Unexpected token 'A'. */ 37/* @@? 20:10 Error TypeError: Class name 'A' used in the wrong context */ 38/* @@? 20:12 Error SyntaxError: Unexpected token '{'. */ 39/* @@? 22:11 Error SyntaxError: Unexpected token 'Nu'. */ 40/* @@? 23:1 Error SyntaxError: Unexpected token, expected an identifier. */ 41/* @@? 24:1 Error SyntaxError: Unexpected token ')'. */ 42/* @@? 24:2 Error SyntaxError: Unexpected token 'void'. */ 43/* @@? 24:7 Error SyntaxError: Unexpected token '{'. */ 44/* @@? 24:8 Error SyntaxError: Unexpected token, expected an identifier. */ 45/* @@? 24:8 Error TypeError: Unresolved reference nt */ 46/* @@? 24:16 Error SyntaxError: Unexpected token ','. */ 47/* @@? 24:18 Error SyntaxError: Unexpected token 'g'. */ 48/* @@? 24:21 Error SyntaxError: Label must be followed by a loop statement. */ 49/* @@? 24:21 Error TypeError: Unresolved reference s */ 50/* @@? 24:23 Error SyntaxError: Unexpected token 'A'. */ 51/* @@? 24:23 Error TypeError: Class name 'A' used in the wrong context */ 52/* @@? 24:25 Error SyntaxError: Unexpected token '{'. */ 53/* @@? 25:1 Error SyntaxError: Unexpected token 'int'. */ 54/* @@? 26:1 Error SyntaxError: Unexpected token ')'. */ 55/* @@? 26:3 Error SyntaxError: Unexpected token '=>'. */ 56/* @@? 26:13 Error SyntaxError: Unexpected token, expected an identifier. */ 57/* @@? 26:13 Error TypeError: Cannot find type ''. */ 58/* @@? 26:14 Error SyntaxError: Unexpected token, expected ',' or ')'. */ 59/* @@? 26:14 Error SyntaxError: Expected '=>', got '+'. */ 60/* @@? 26:15 Error SyntaxError: Unexpected token ')'. */ 61/* @@? 26:16 Error SyntaxError: Unexpected token ':'. */ 62/* @@? 26:18 Error SyntaxError: Unexpected token 'A6'. */ 63/* @@? 26:18 Error TypeError: Bad operand type, the types of the operands must be numeric type. */ 64/* @@? 26:18 Error TypeError: The type of parameter 'A6' cannot be inferred */ 65/* @@? 26:25 Error TypeError: Unresolved reference reƒurn */ 66/* @@? 26:32 Error SyntaxError: Unexpected token '_ew'. */ 67/* @@? 26:32 Error TypeError: Unresolved reference _ew */ 68/* @@? 26:36 Error SyntaxError: Unexpected token 'B'. */ 69/* @@? 26:36 Error TypeError: No static $_invoke method and static $_instantiate method in B. B() is not allowed. */ 70/* @@? 26:36 Error TypeError: Type 'B' has no call signatures. */ 71/* @@? 26:40 Error SyntaxError: Unexpected token, expected ',' or ')'. */ 72/* @@? 27:2 Error TypeError: Unresolved reference ó */ 73/* @@? 74:1 Error SyntaxError: Expected '}', got 'end of stream'. */ 74