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