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