• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 */
15import { ff3 } from "./interop_import_js_rules_js"
16import {foo} from "./interop_import_js_index_js"
17let arr = foo.arr
18arr[1]
19arr[3] = 4
20
21let arr1 = ff3.arr
22let len = arr1.length as number
23for (let i = 0; i < arr1.length; ++i) {
24    console.log(arr1[i]+'');  //error
25    let x = arr1[i]  //error
26    arr1[i] = 0  //error
27    console.log(arr1[i]+'');  //error
28}
29
30for (let element of arr1) {  //error
31  if (element == 8) {
32    console.log("hi");
33  }
34}