2014-12-16 10:09:42 +01:00
|
|
|
tests/cases/compiler/constDeclarations-es5.ts(2,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/constDeclarations-es5.ts(3,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/constDeclarations-es5.ts(4,1): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
==== tests/cases/compiler/constDeclarations-es5.ts (3 errors) ====
|
|
|
|
|
|
|
|
const z7 = false;
|
2014-12-16 10:09:42 +01:00
|
|
|
~~~~~
|
2014-10-15 02:37:46 +02:00
|
|
|
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
const z8: number = 23;
|
2014-12-16 10:09:42 +01:00
|
|
|
~~~~~
|
2014-10-15 02:37:46 +02:00
|
|
|
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
const z9 = 0, z10 :string = "", z11 = null;
|
2014-12-16 10:09:42 +01:00
|
|
|
~~~~~
|
2014-10-15 02:37:46 +02:00
|
|
|
!!! error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
2014-10-13 06:10:04 +02:00
|
|
|
|