24 lines
561 B
Text
24 lines
561 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of45.ts ===
|
|
var array = [{x: [0], y: {p: ""}}]
|
|
>array : { x: number[]; y: { p: string; }; }[]
|
|
>[{x: [0], y: {p: ""}}] : { x: number[]; y: { p: string; }; }[]
|
|
>{x: [0], y: {p: ""}} : { x: number[]; y: { p: string; }; }
|
|
>x : number[]
|
|
>[0] : number[]
|
|
>y : { p: string; }
|
|
>{p: ""} : { p: string; }
|
|
>p : string
|
|
|
|
for (var {x: [a], y: {p}} of array) {
|
|
>x : unknown
|
|
>a : number
|
|
>y : unknown
|
|
>p : string
|
|
>array : { x: number[]; y: { p: string; }; }[]
|
|
|
|
a;
|
|
>a : number
|
|
|
|
p;
|
|
>p : string
|
|
}
|