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
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts (1 errors) ====
|
|
|
|
for (let v of []) {
|
|
|
|
let v;
|
|
|
|
for (let v of [v]) {
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|