/*
 * Copyright (c) 2024 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 o2 from 'assert';
function n2() {
    return { Propx1: 1, Propy1: 2 };
}
const { Propx1: p2, Propy1: q2 } = n2();
o2(p2 === 1, 'success');
o2(q2 === 2, 'success');
// let Propx2 =3;
// let Propy3 =4;
// let Propy4 =5;
const { Propx2: r2, Obj: { Propy3: s2, Propy4: t2 } } = { Propx2: 2, Obj: { Propy3: 3, Propy4: 4 } };
o2(r2 === 2, 'success');
o2(s2 === 3, 'success');
o2(t2 === 4, 'success');
const { ...u2 } = { prop1: 1, prop2: 2 };
o2(u2.prop1 === 1, 'success');
o2(u2.prop2 === 2, 'success');
const { prop3: v2, ...w2 } = { prop3: 3, prop4: 4 };
o2(v2 === 3, 'success');
o2(w2.prop4 === 4, 'success');
let x2 = 'hello';
let y2 = { name11: x2 };
