40 lines
2.3 KiB
Plaintext
40 lines
2.3 KiB
Plaintext
tests/cases/compiler/letDeclarations-es5.ts(2,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(3,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(4,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(6,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(7,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(8,1): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(10,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
tests/cases/compiler/letDeclarations-es5.ts(12,5): error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
|
|
==== tests/cases/compiler/letDeclarations-es5.ts (8 errors) ====
|
|
|
|
let l1;
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
let l2: number;
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
let l3, l4, l5 :string, l6;
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
let l7 = false;
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
let l8: number = 23;
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
let l9 = 0, l10 :string = "", l11 = null;
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
for(let l11 in {}) { }
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
for(let l12 = 0; l12 < 9; l12++) { }
|
|
~~~
|
|
!!! error TS1153: 'let' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|