mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
957 B
Plaintext
24 lines
957 B
Plaintext
//// [tests/cases/compiler/declarationEmitDestructuring5.ts] ////
|
|
|
|
=== declarationEmitDestructuring5.ts ===
|
|
function baz([, z, , ]) { }
|
|
>baz : Symbol(baz, Decl(declarationEmitDestructuring5.ts, 0, 0))
|
|
>z : Symbol(z, Decl(declarationEmitDestructuring5.ts, 0, 15))
|
|
|
|
function foo([, b, ]: [any, any]): void { }
|
|
>foo : Symbol(foo, Decl(declarationEmitDestructuring5.ts, 0, 27))
|
|
>b : Symbol(b, Decl(declarationEmitDestructuring5.ts, 1, 15))
|
|
|
|
function bar([z, , , ]) { }
|
|
>bar : Symbol(bar, Decl(declarationEmitDestructuring5.ts, 1, 43))
|
|
>z : Symbol(z, Decl(declarationEmitDestructuring5.ts, 2, 14))
|
|
|
|
function bar1([z, , , ] = [1, 3, 4, 6, 7]) { }
|
|
>bar1 : Symbol(bar1, Decl(declarationEmitDestructuring5.ts, 2, 27))
|
|
>z : Symbol(z, Decl(declarationEmitDestructuring5.ts, 3, 15))
|
|
|
|
function bar2([,,z, , , ]) { }
|
|
>bar2 : Symbol(bar2, Decl(declarationEmitDestructuring5.ts, 3, 46))
|
|
>z : Symbol(z, Decl(declarationEmitDestructuring5.ts, 4, 17))
|
|
|