1/* 2 * Copyright (c) 2023 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 16import { Country } from './test1' 17import type { Color } from './test2' 18 19const enum City { 20 BEIJING = 'beijing', 21 SHANGHAI = 'shanghai', 22}; 23 24interface Position {}; 25 26class Person { 27 name: string; 28 private age: number; 29 mother: Person; 30 father: Person; 31 num: bigint; 32 child: Person | null; 33 country: Country; 34 city: City; 35 pos: Position; 36 mix: Country | City | Position; 37 hair: Color; 38 constructor() { 39 "use sendable"; 40 } 41} 42 43function Test() { 44 class Pet<T, U> { 45 name: string; 46 color: T | undefined; 47 weight: U; 48 constructor() { 49 "use sendable"; 50 } 51 } 52}