TypeScript/tests/baselines/reference/for-of43.types
2018-10-06 08:04:09 -07:00

26 lines
498 B
Plaintext

=== tests/cases/conformance/es6/for-ofStatements/for-of43.ts ===
var array = [{ x: "", y: 0 }]
>array : { x: string; y: number; }[]
>[{ x: "", y: 0 }] : { x: string; y: number; }[]
>{ x: "", y: 0 } : { x: string; y: number; }
>x : string
>"" : ""
>y : number
>0 : 0
for (var {x: a = "", y: b = true} of array) {
>x : any
>a : string
>"" : ""
>y : any
>b : number | boolean
>true : true
>array : { x: string; y: number; }[]
a;
>a : string
b;
>b : number | true
}