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

3 lines
75 B
TypeScript

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