2015-03-12 21:37:08 +01:00
|
|
|
tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(3,20): error TS2448: Block-scoped variable 'v' used before its declaration.
|
2015-03-06 00:21:00 +01:00
|
|
|
tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts(4,15): error TS1155: 'const' declarations must be initialized
|
2015-03-05 04:33:49 +01:00
|
|
|
|
|
|
|
|
2015-03-12 21:37:08 +01:00
|
|
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts (2 errors) ====
|
2015-03-05 04:33:49 +01:00
|
|
|
for (let v of []) {
|
|
|
|
let v;
|
|
|
|
for (let v of [v]) {
|
2015-03-12 21:37:08 +01:00
|
|
|
~
|
|
|
|
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
|
2015-03-05 04:33:49 +01:00
|
|
|
const v;
|
2015-03-06 00:21:00 +01:00
|
|
|
~
|
|
|
|
!!! error TS1155: 'const' declarations must be initialized
|
2015-03-05 04:33:49 +01:00
|
|
|
}
|
|
|
|
}
|