2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,12): error TS1005: ',' expected.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,15): error TS1005: ',' expected.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,24): error TS1005: ',' expected.
|
2014-10-21 02:38:50 +02:00
|
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(2,14): error TS2452: An enum member cannot have a numeric name.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,17): error TS2452: An enum member cannot have a numeric name.
|
|
|
|
tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts(3,26): error TS2452: An enum member cannot have a numeric name.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-10-07 07:27:22 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/EnumDeclarations/parserEnum5.ts (6 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
enum E2 { a, }
|
|
|
|
enum E3 { a: 1, }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ',' expected.
|
2014-10-07 07:27:22 +02:00
|
|
|
~
|
2014-10-21 02:38:50 +02:00
|
|
|
!!! error TS2452: An enum member cannot have a numeric name.
|
2014-07-13 01:04:16 +02:00
|
|
|
enum E1 { a, b: 1, c, d: 2 = 3 }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1005: ',' expected.
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-10-07 07:27:22 +02:00
|
|
|
!!! error TS1005: ',' expected.
|
2014-10-09 17:52:53 +02:00
|
|
|
~
|
2014-10-21 02:38:50 +02:00
|
|
|
!!! error TS2452: An enum member cannot have a numeric name.
|
2014-10-07 07:27:22 +02:00
|
|
|
~
|
2014-10-21 02:38:50 +02:00
|
|
|
!!! error TS2452: An enum member cannot have a numeric name.
|