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