mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
418 B
TypeScript
19 lines
418 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/optionalBindingParametersInOverloads1.ts] ////
|
|
|
|
//// [optionalBindingParametersInOverloads1.ts]
|
|
function foo([x, y, z] ?: [string, number, boolean]);
|
|
function foo(...rest: any[]) {
|
|
|
|
}
|
|
|
|
foo(["", 0, false]);
|
|
|
|
foo([false, 0, ""]);
|
|
|
|
//// [optionalBindingParametersInOverloads1.js]
|
|
"use strict";
|
|
function foo(...rest) {
|
|
}
|
|
foo(["", 0, false]);
|
|
foo([false, 0, ""]);
|