2015-04-10 21:11:28 +02:00
|
|
|
tests/cases/conformance/es6/for-ofStatements/for-of49.ts(3,14): error TS2322: Type 'string | boolean' is not assignable to type 'boolean'.
|
|
|
|
Type 'string' is not assignable to type 'boolean'.
|
2015-02-27 00:58:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/conformance/es6/for-ofStatements/for-of49.ts (1 errors) ====
|
|
|
|
var k: string, v: boolean;
|
|
|
|
var map = new Map([["", true]]);
|
|
|
|
for ([k, ...[v]] of map) {
|
2015-04-10 21:11:28 +02:00
|
|
|
~
|
|
|
|
!!! error TS2322: Type 'string | boolean' is not assignable to type 'boolean'.
|
|
|
|
!!! error TS2322: Type 'string' is not assignable to type 'boolean'.
|
2015-02-27 00:58:46 +01:00
|
|
|
k;
|
|
|
|
v;
|
|
|
|
}
|