1/*
2 * Copyright (c) 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
16import x from "aaa"
17
18function foo(s){
19  "use sendable";
20  print(x);
21  function ttt() {
22    print(x);
23    function sss() {
24      print(x);
25    }
26  }
27  function ttt2() {
28    print(x);
29  }
30}
31function foo3() {
32  print(x);
33  function xxx() {
34    print(x);
35  }
36}
37class A {
38  constructor(){
39    "use sendable";
40  }
41  fooA() {
42    function t() {
43      print(x);
44    }
45  }
46}
47function foo4() {
48  print(x);
49  function xxx() {
50    print(x);
51  }
52}