13 lines
462 B
Plaintext
13 lines
462 B
Plaintext
|
tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts(3,20): error TS2448: Block-scoped variable 'v' used before its declaration.
|
||
|
|
||
|
|
||
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts (1 errors) ====
|
||
|
for (let v of []) {
|
||
|
v;
|
||
|
for (let v of [v]) {
|
||
|
~
|
||
|
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
|
||
|
var x = v;
|
||
|
v++;
|
||
|
}
|
||
|
}
|