TypeScript/tests/baselines/reference/ES5For-of7.errors.txt

13 lines
570 B
Plaintext
Raw Normal View History

tests/cases/conformance/statements/for-ofStatements/ES5For-of7.ts(6,9): error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'any', but here has type 'any[]'.
2015-03-05 04:33:49 +01:00
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of7.ts (1 errors) ====
2015-03-05 04:33:49 +01:00
for (var w of []) {
var x = w;
}
for (var v of []) {
var x = [w, v];
~
!!! error TS2403: Subsequent variable declarations must have the same type. Variable 'x' must be of type 'any', but here has type 'any[]'.
2015-03-05 04:33:49 +01:00
}