2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/enumWithPrimitiveName.ts(1,6): error TS2431: Enum name cannot be 'string'
|
|
|
|
tests/cases/compiler/enumWithPrimitiveName.ts(2,6): error TS2431: Enum name cannot be 'number'
|
|
|
|
tests/cases/compiler/enumWithPrimitiveName.ts(3,6): error TS2431: Enum name cannot be 'any'
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/enumWithPrimitiveName.ts (3 errors) ====
|
|
|
|
enum string { }
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2431: Enum name cannot be 'string'
|
2014-07-13 01:04:16 +02:00
|
|
|
enum number { }
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2431: Enum name cannot be 'number'
|
2014-07-13 01:04:16 +02:00
|
|
|
enum any { }
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2431: Enum name cannot be 'any'
|