1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
=== tests/cases/conformance/es6/destructuring/optionalBindingParameters1.ts ===
function foo([x,y,z]?: [string, number, boolean]) {
>foo : Symbol(foo, Decl(optionalBindingParameters1.ts, 0, 0))
>x : Symbol(x, Decl(optionalBindingParameters1.ts, 0, 14))
>y : Symbol(y, Decl(optionalBindingParameters1.ts, 0, 16))
>z : Symbol(z, Decl(optionalBindingParameters1.ts, 0, 18))
}
foo(["", 0, false]);
>foo : Symbol(foo, Decl(optionalBindingParameters1.ts, 0, 0))
foo([false, 0, ""]);
>foo : Symbol(foo, Decl(optionalBindingParameters1.ts, 0, 0))
|