TypeScript/tests/baselines/reference/for-of42.types

24 lines
756 B
Plaintext
Raw Normal View History

2015-02-26 03:56:12 +01:00
=== tests/cases/conformance/es6/for-ofStatements/for-of42.ts ===
var array = [{ x: "", y: 0 }]
2015-04-13 23:01:57 +02:00
>array : { x: string; y: number; }[], Symbol(array, Decl(for-of42.ts, 0, 3))
2015-02-26 03:56:12 +01:00
>[{ x: "", y: 0 }] : { x: string; y: number; }[]
>{ x: "", y: 0 } : { x: string; y: number; }
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(for-of42.ts, 0, 14))
2015-04-13 21:36:11 +02:00
>"" : string
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(for-of42.ts, 0, 21))
2015-04-13 21:36:11 +02:00
>0 : number
2015-02-26 03:56:12 +01:00
for (var {x: a, y: b} of array) {
>x : any
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(for-of42.ts, 1, 10))
>y : any
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(for-of42.ts, 1, 15))
>array : { x: string; y: number; }[], Symbol(array, Decl(for-of42.ts, 0, 3))
2015-02-26 03:56:12 +01:00
a;
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(for-of42.ts, 1, 10))
2015-02-26 03:56:12 +01:00
b;
2015-04-13 23:01:57 +02:00
>b : number, Symbol(b, Decl(for-of42.ts, 1, 15))
2015-02-26 03:56:12 +01:00
}