27 lines
555 B
Text
27 lines
555 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]
|
||
|
|
||
|
for ([k = "", v = false] of map) {
|
||
|
>[k = "", v = false] : (string | boolean)[]
|
||
|
>k = "" : string
|
||
|
>k : string
|
||
|
>v = false : boolean
|
||
|
>v : boolean
|
||
|
>map : Map<string, boolean>
|
||
|
|
||
|
k;
|
||
|
>k : string
|
||
|
|
||
|
v;
|
||
|
>v : boolean
|
||
|
}
|