mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
346 B
TypeScript
11 lines
346 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/restElementWithInitializer1.ts] ////
|
|
|
|
//// [restElementWithInitializer1.ts]
|
|
declare var a: number[];
|
|
var [...x = a] = a; // Error, rest element cannot have initializer
|
|
|
|
|
|
//// [restElementWithInitializer1.js]
|
|
"use strict";
|
|
var [...x = a] = a; // Error, rest element cannot have initializer
|