mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
50 lines
748 B
TypeScript
50 lines
748 B
TypeScript
// @target: es6
|
|
|
|
(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) {
|
|
}
|
|
})(); |