/*
 * Copyright (c) 2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { collections } from '@kit.ArkTS';
Array.length;
const date = new Date("August 19,1975 23:00:00 UTC");//lib.es2015.core.d.ts

let array = new collections.Array(1, 2, 3);
let array1 = new collections.Array(4, 5, 6);
let array2 = new collections.Array(7, 8, 9);
let concatArray = array.concat(array1, array2);
let arr3: collections.Array<string> = new collections.Array('a', 'b', 'c', 'd');
let result: boolean = collections.Array.isArray(arr3);
console.info(result + '');


class C{
  a: number=1;
}
let a = new C()
Reflect.has(a, "a") // no error
Reflect.has(a, false) // error

let a: PropertyKey = "a"; // no error

let a = new Number('true') // no error
let b = new Number(1) // no error
let c = new Number(1n) // no error
let d = new Number() // no error

let num = new Object(1) // no error

let array:Array = new Array() // no error

Number.isFinite(1)  //no error
Number.isInteger(1) //no error
Number.isNaN(1) //no error
Number.isSafeInteger(1) //no error