mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
13 lines
351 B
TypeScript
13 lines
351 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern3.ts] ////
|
|
|
|
//// [restElementWithAssignmentPattern3.ts]
|
|
var a: string, b: number;
|
|
var tuple: [string, number] = ["", 1];
|
|
[...[a, b = 0]] = tuple;
|
|
|
|
//// [restElementWithAssignmentPattern3.js]
|
|
"use strict";
|
|
var a, b;
|
|
var tuple = ["", 1];
|
|
[...[a, b = 0]] = tuple;
|