30 lines
615 B
Text
30 lines
615 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of45.ts ===
|
|
var k: string, v: boolean;
|
|
>k : string
|
|
>v : boolean
|
|
|
|
var map = new Map([["", true]]);
|
|
>map : Map<string, boolean>
|
|
>new Map([["", true]]) : Map<string, boolean>
|
|
>Map : MapConstructor
|
|
>[["", true]] : [string, boolean][]
|
|
>["", true] : [string, boolean]
|
|
>"" : string
|
|
>true : boolean
|
|
|
|
for ([k = "", v = false] of map) {
|
|
>[k = "", v = false] : [string, boolean]
|
|
>k = "" : string
|
|
>k : string
|
|
>"" : string
|
|
>v = false : boolean
|
|
>v : boolean
|
|
>false : boolean
|
|
>map : Map<string, boolean>
|
|
|
|
k;
|
|
>k : string
|
|
|
|
v;
|
|
>v : boolean
|
|
}
|