TypeScript/tests/baselines/reference/ES5For-of20.errors.txt
Daniel Rosenwasser 7f67328a9e Accepted baselines
2018-07-05 18:51:03 -07:00

16 lines
No EOL
774 B
Text

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.
==== tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts (2 errors) ====
for (let v of []) {
let v;
for (let v of [v]) {
~
!!! error TS2448: Block-scoped variable 'v' used before its declaration.
!!! related TS2728 tests/cases/conformance/statements/for-ofStatements/ES5For-of20.ts:3:14: 'v' is declared here.
const v;
~
!!! error TS1155: 'const' declarations must be initialized.
}
}