mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
405 B
TypeScript
17 lines
405 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter04.ts] ////
|
|
|
|
//// [emptyArrayBindingPatternParameter04.ts]
|
|
function f([] = [1,2,3,4]) {
|
|
var x, y, z;
|
|
}
|
|
|
|
//// [emptyArrayBindingPatternParameter04.js]
|
|
"use strict";
|
|
function f([] = [1, 2, 3, 4]) {
|
|
var x, y, z;
|
|
}
|
|
|
|
|
|
//// [emptyArrayBindingPatternParameter04.d.ts]
|
|
declare function f([]?: number[]): void;
|