15 lines
610 B
Plaintext
15 lines
610 B
Plaintext
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'.
|
|
|
|
|
|
==== tests/cases/compiler/enumWithPrimitiveName.ts (3 errors) ====
|
|
enum string { }
|
|
~~~~~~
|
|
!!! error TS2431: Enum name cannot be 'string'.
|
|
enum number { }
|
|
~~~~~~
|
|
!!! error TS2431: Enum name cannot be 'number'.
|
|
enum any { }
|
|
~~~
|
|
!!! error TS2431: Enum name cannot be 'any'. |