TypeScript/tests/baselines/reference/for-of41.types
2015-04-13 14:29:37 -07:00

26 lines
919 B
Text

=== tests/cases/conformance/es6/for-ofStatements/for-of41.ts ===
var array = [{x: [0], y: {p: ""}}]
>array : { x: number[]; y: { p: string; }; }[], Symbol(array, Decl(for-of41.ts, 0, 3))
>[{x: [0], y: {p: ""}}] : { x: number[]; y: { p: string; }; }[]
>{x: [0], y: {p: ""}} : { x: number[]; y: { p: string; }; }
>x : number[], Symbol(x, Decl(for-of41.ts, 0, 14))
>[0] : number[]
>0 : number
>y : { p: string; }, Symbol(y, Decl(for-of41.ts, 0, 21))
>{p: ""} : { p: string; }
>p : string, Symbol(p, Decl(for-of41.ts, 0, 26))
>"" : string
for (var {x: [a], y: {p}} of array) {
>x : any
>a : number, Symbol(a, Decl(for-of41.ts, 1, 14))
>y : any
>p : string, Symbol(p, Decl(for-of41.ts, 1, 22))
>array : { x: number[]; y: { p: string; }; }[], Symbol(array, Decl(for-of41.ts, 0, 3))
a;
>a : number, Symbol(a, Decl(for-of41.ts, 1, 14))
p;
>p : string, Symbol(p, Decl(for-of41.ts, 1, 22))
}