swc/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads1.ts

9 lines
132 B
TypeScript

function foo([x, y, z] ?: [string, number, boolean]);
function foo(...rest: any[]) {
}
foo(["", 0, false]);
foo([false, 0, ""]);