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 16/* 17// [Start wrong_example] 18export lazy var v; // 编译器提示报错:应用编译报错 19export lazy default function f(){}; // 编译器提示报错:应用编译报错 20export lazy default function(){}; // 编译器提示报错:应用编译报错 21export lazy default 42; // 编译器提示报错:应用编译报错 22export lazy { x }; // 编译器提示报错:应用编译报错 23export lazy { x as v }; // 编译器提示报错:应用编译报错 24export lazy { x } from 'mod'; // 编译器提示报错:应用编译报错 25export lazy { x as v } from 'mod'; // 编译器提示报错:应用编译报错 26export lazy * from 'mod'; // 编译器提示报错:应用编译报错 27 28import lazy v from 'mod'; // 编译器提示报错:应用编译报错 29import lazy * as ns from 'mod'; // 编译器提示报错:应用编译报错 30 31import lazy type { obj } from './mod'; // 不支持,编译器、应用编译报错 32import type lazy { obj } from './mod'; // 不支持,编译器、应用编译报错 33// [End wrong_example] 34* */ 35