2014-11-19 11:11:17 +01:00
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(2,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(3,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(4,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(6,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(7,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(8,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(10,9): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/letDeclarations-es5.ts(12,9): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|
|
|
|
|
2014-11-19 11:11:17 +01:00
|
|
|
==== tests/cases/compiler/letDeclarations-es5.ts (8 errors) ====
|
2014-10-13 06:10:04 +02:00
|
|
|
|
|
|
|
let l1;
|
2014-11-19 11:11:17 +01:00
|
|
|
~~
|
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
let l2: number;
|
2014-11-19 11:11:17 +01:00
|
|
|
~~
|
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
let l3, l4, l5 :string, l6;
|
2014-11-19 11:11:17 +01:00
|
|
|
~~
|
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|
|
|
|
let l7 = false;
|
2014-11-19 11:11:17 +01:00
|
|
|
~~
|
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
let l8: number = 23;
|
2014-11-19 11:11:17 +01:00
|
|
|
~~
|
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
let l9 = 0, l10 :string = "", l11 = null;
|
2014-11-19 11:11:17 +01:00
|
|
|
~~
|
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|
|
|
|
for(let l11 in {}) { }
|
2014-11-19 11:11:17 +01:00
|
|
|
~~~
|
2014-10-15 18:15:00 +02:00
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|
|
|
|
for(let l12 = 0; l12 < 9; l12++) { }
|
2014-11-19 11:11:17 +01:00
|
|
|
~~~
|
2014-10-15 18:15:00 +02:00
|
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|