mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
878 B
Plaintext
17 lines
878 B
Plaintext
//// [tests/cases/compiler/forLoopWithDestructuringDoesNotElideFollowingStatement.ts] ////
|
|
|
|
=== forLoopWithDestructuringDoesNotElideFollowingStatement.ts ===
|
|
let array = [{a: 0, b: 1}]
|
|
>array : Symbol(array, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 0, 3))
|
|
>a : Symbol(a, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 0, 14))
|
|
>b : Symbol(b, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 0, 19))
|
|
|
|
for (let { a, ...rest } of array)
|
|
>a : Symbol(a, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 1, 10))
|
|
>rest : Symbol(rest, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 1, 13))
|
|
>array : Symbol(array, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 0, 3))
|
|
|
|
void a
|
|
>a : Symbol(a, Decl(forLoopWithDestructuringDoesNotElideFollowingStatement.ts, 1, 10))
|
|
|