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

24 lines
756 B
Plaintext

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