13 lines
No EOL
570 B
Text
13 lines
No EOL
570 B
Text
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[]'.
|
|
|
|
|
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of7.ts (1 errors) ====
|
|
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[]'.
|
|
} |