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

15 lines
657 B
Plaintext
Raw Normal View History

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.
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;
~
!!! error TS1155: 'const' declarations must be initialized
2015-03-05 04:33:49 +01:00
}
}