13 lines
No EOL
821 B
Text
13 lines
No EOL
821 B
Text
tests/cases/conformance/es6/for-ofStatements/for-of39.ts(1,15): error TS2453: The type argument for type parameter 'V' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
|
Type argument candidate 'boolean' is not a valid type argument because it is not a supertype of candidate 'number'.
|
|
|
|
|
|
==== tests/cases/conformance/es6/for-ofStatements/for-of39.ts (1 errors) ====
|
|
var map = new Map([["", true], ["", 0]]);
|
|
~~~
|
|
!!! error TS2453: The type argument for type parameter 'V' cannot be inferred from the usage. Consider specifying the type arguments explicitly.
|
|
!!! error TS2453: Type argument candidate 'boolean' is not a valid type argument because it is not a supertype of candidate 'number'.
|
|
for (var [k, v] of map) {
|
|
k;
|
|
v;
|
|
} |