25 lines
498 B
Text
25 lines
498 B
Text
=== 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
|
|
}
|