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