2014-11-19 11:11:17 +01:00
|
|
|
tests/cases/compiler/constDeclarations-es5.ts(2,7): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/constDeclarations-es5.ts(3,7): error TS1154: 'const' declarations are only available when targeting ECMAScript 6 and higher.
|
|
|
|
tests/cases/compiler/constDeclarations-es5.ts(4,7): 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-11-19 11:11:17 +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-11-19 11:11:17 +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-11-19 11:11:17 +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
|
|
|
|