mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
653 B
Plaintext
16 lines
653 B
Plaintext
//// [tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern3.ts] ////
|
|
|
|
=== restElementWithAssignmentPattern3.ts ===
|
|
var a: string, b: number;
|
|
>a : Symbol(a, Decl(restElementWithAssignmentPattern3.ts, 0, 3))
|
|
>b : Symbol(b, Decl(restElementWithAssignmentPattern3.ts, 0, 14))
|
|
|
|
var tuple: [string, number] = ["", 1];
|
|
>tuple : Symbol(tuple, Decl(restElementWithAssignmentPattern3.ts, 1, 3))
|
|
|
|
[...[a, b = 0]] = tuple;
|
|
>a : Symbol(a, Decl(restElementWithAssignmentPattern3.ts, 0, 3))
|
|
>b : Symbol(b, Decl(restElementWithAssignmentPattern3.ts, 0, 14))
|
|
>tuple : Symbol(tuple, Decl(restElementWithAssignmentPattern3.ts, 1, 3))
|
|
|