TypeScript/tests/baselines/reference/parserES5ForOfStatement12.errors.txt

11 lines
726 B
Text
Raw Normal View History

2015-02-17 21:38:21 +01:00
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts(1,1): error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts(1,6): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
==== tests/cases/conformance/parser/ecmascript5/Statements/parserES5ForOfStatement12.ts (2 errors) ====
for (const {a, b} of X) {
~~~
!!! error TS2482: For-of statements are only available when targeting ECMAScript 6 or higher
~~~~~
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
}