swc/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern29.ts

3 lines
156 B
TypeScript

//@target: ES6
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]: [string, number][]) { }
takeFirstTwoEntries(...new Map([["", true], ["hello", true]]));