TypeScript/tests/cases/compiler/declarationEmitDestructuringArrayPattern4.ts
2015-02-12 13:23:49 -08:00

10 lines
330 B
TypeScript

// @declaration: true
var [...a5] = [1, 2, 3];
var [x14, ...a6] = [1, 2, 3];
var [x15, y15, ...a7] = [1, 2, 3];
var [x16, y16, z16, ...a8] = [1, 2, 3];
var [...a9] = [1, "hello", true];
var [x17, ...a10] = [1, "hello", true];
var [x18, y18, ...a12] = [1, "hello", true];
var [x19, y19, z19, ...a13] = [1, "hello", true];