25 lines
No EOL
1.1 KiB
Text
25 lines
No EOL
1.1 KiB
Text
tests/cases/compiler/enumIdentifierLiterals.ts(2,5): error TS1151: An enum member cannot have a numeric name.
|
|
tests/cases/compiler/enumIdentifierLiterals.ts(3,5): error TS1151: An enum member cannot have a numeric name.
|
|
tests/cases/compiler/enumIdentifierLiterals.ts(4,5): error TS1151: An enum member cannot have a numeric name.
|
|
tests/cases/compiler/enumIdentifierLiterals.ts(5,5): error TS1151: An enum member cannot have a numeric name.
|
|
tests/cases/compiler/enumIdentifierLiterals.ts(6,5): error TS1151: An enum member cannot have a numeric name.
|
|
|
|
|
|
==== tests/cases/compiler/enumIdentifierLiterals.ts (5 errors) ====
|
|
enum Nums {
|
|
1.0,
|
|
~~~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
11e-1,
|
|
~~~~~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
0.12e1,
|
|
~~~~~~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
"13e-1",
|
|
~~~~~~~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
0xF00D
|
|
~~~~~~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
} |