24 lines
No EOL
1.3 KiB
Text
24 lines
No EOL
1.3 KiB
Text
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,12): error TS1005: ',' expected.
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,14): error TS1151: An enum member cannot have a numeric name.
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,15): error TS1005: ',' expected.
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,17): error TS1151: An enum member cannot have a numeric name.
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,24): error TS1005: ',' expected.
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,26): error TS1151: An enum member cannot have a numeric name.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts (6 errors) ====
|
|
enum E2 { a, }
|
|
enum E3 { a: 1, }
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
enum E1 { a, b: 1, c, d: 2 = 3 }
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~
|
|
!!! error TS1151: An enum member cannot have a numeric name.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~
|
|
!!! error TS1151: An enum member cannot have a numeric name. |