2015-03-30 22:25:46 +02:00
|
|
|
=== tests/cases/compiler/declarationEmitDestructuring5.ts ===
|
|
|
|
function baz([, z, , ]) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>baz : ([, z, , ]: [any, any, any]) => void, Symbol(baz, Decl(declarationEmitDestructuring5.ts, 0, 0))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : any, Symbol(z, Decl(declarationEmitDestructuring5.ts, 0, 15))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-03-30 22:25:46 +02:00
|
|
|
|
|
|
|
function foo([, b, ]: [any, any]): void { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : ([, b, ]: [any, any]) => void, Symbol(foo, Decl(declarationEmitDestructuring5.ts, 0, 27))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : any, Symbol(b, Decl(declarationEmitDestructuring5.ts, 1, 15))
|
2015-03-30 22:25:46 +02:00
|
|
|
|
|
|
|
function bar([z, , , ]) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : ([z, , , ]: [any, any, any]) => void, Symbol(bar, Decl(declarationEmitDestructuring5.ts, 1, 43))
|
|
|
|
>z : any, Symbol(z, Decl(declarationEmitDestructuring5.ts, 2, 14))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
|
|
|
> : undefined
|
2015-03-30 22:25:46 +02:00
|
|
|
|
|
|
|
function bar1([z, , , ] = [1, 3, 4, 6, 7]) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar1 : ([z, , , ]?: [number, number, number, number, number]) => void, Symbol(bar1, Decl(declarationEmitDestructuring5.ts, 2, 27))
|
|
|
|
>z : number, Symbol(z, Decl(declarationEmitDestructuring5.ts, 3, 15))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
|
|
|
> : undefined
|
2015-03-30 22:25:46 +02:00
|
|
|
>[1, 3, 4, 6, 7] : [number, number, number, number, number]
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
|
|
|
>3 : number
|
|
|
|
>4 : number
|
|
|
|
>6 : number
|
|
|
|
>7 : number
|
2015-03-30 22:25:46 +02:00
|
|
|
|
|
|
|
function bar2([,,z, , , ]) { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar2 : ([,,z, , , ]: [any, any, any, any, any]) => void, Symbol(bar2, Decl(declarationEmitDestructuring5.ts, 3, 46))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
|
|
|
> : undefined
|
2015-04-13 23:01:57 +02:00
|
|
|
>z : any, Symbol(z, Decl(declarationEmitDestructuring5.ts, 4, 17))
|
2015-04-13 21:36:11 +02:00
|
|
|
> : undefined
|
|
|
|
> : undefined
|
2015-03-30 22:25:46 +02:00
|
|
|
|