23 lines
628 B
Text
23 lines
628 B
Text
|
=== tests/cases/compiler/declarationEmitDestructuring5.ts ===
|
||
|
function baz([, z, , ]) { }
|
||
|
>baz : ([, z, , ]: [any, any, any]) => void
|
||
|
>z : any
|
||
|
|
||
|
function foo([, b, ]: [any, any]): void { }
|
||
|
>foo : ([, b, ]: [any, any]) => void
|
||
|
>b : any
|
||
|
|
||
|
function bar([z, , , ]) { }
|
||
|
>bar : ([z, , , ]: [any, any, any]) => void
|
||
|
>z : any
|
||
|
|
||
|
function bar1([z, , , ] = [1, 3, 4, 6, 7]) { }
|
||
|
>bar1 : ([z, , , ]?: [number, number, number, number, number]) => void
|
||
|
>z : number
|
||
|
>[1, 3, 4, 6, 7] : [number, number, number, number, number]
|
||
|
|
||
|
function bar2([,,z, , , ]) { }
|
||
|
>bar2 : ([,,z, , , ]: [any, any, any, any, any]) => void
|
||
|
>z : any
|
||
|
|