This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
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 TS2452: 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 TS2452: 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 TS2452: 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 TS2452: An enum member cannot have a numeric name.
|
|
enum E1 { a, b: 1, c, d: 2 = 3 }
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~
|
|
!!! error TS2452: An enum member cannot have a numeric name.
|
|
~
|
|
!!! error TS1005: ',' expected.
|
|
~
|
|
!!! error TS2452: An enum member cannot have a numeric name. |