TypeScript/tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern1.ts

3 lines
69 B
TypeScript

//@target: ES6
var a: string, b: number;
[...[a, b = 0]] = ["", 1];