mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
51 lines
777 B
TypeScript
51 lines
777 B
TypeScript
// @target: es5
|
|
// @downlevelIteration: true
|
|
|
|
(function () {
|
|
var a: any;
|
|
|
|
var {} = a;
|
|
let {} = a;
|
|
const {} = a;
|
|
|
|
var [] = a;
|
|
let [] = a;
|
|
const [] = a;
|
|
|
|
var {} = a, [] = a;
|
|
let {} = a, [] = a;
|
|
const {} = a, [] = a;
|
|
|
|
var { p1: {}, p2: [] } = a;
|
|
let { p1: {}, p2: [] } = a;
|
|
const { p1: {}, p2: [] } = a;
|
|
|
|
for (var {} = {}, {} = {}; false; void 0) {
|
|
}
|
|
|
|
function f({} = a, [] = a, { p: {} = a} = a) {
|
|
return ({} = a, [] = a, { p: {} = a } = a) => a;
|
|
}
|
|
})();
|
|
|
|
(function () {
|
|
const ns: number[][] = [];
|
|
|
|
for (var {} of ns) {
|
|
}
|
|
|
|
for (let {} of ns) {
|
|
}
|
|
|
|
for (const {} of ns) {
|
|
}
|
|
|
|
for (var [] of ns) {
|
|
}
|
|
|
|
for (let [] of ns) {
|
|
}
|
|
|
|
for (const [] of ns) {
|
|
}
|
|
})(); |