16 lines
429 B
Plaintext
16 lines
429 B
Plaintext
|
==== tests/cases/compiler/enumsWithMultipleDeclarations1.ts (2 errors) ====
|
||
|
enum E {
|
||
|
A
|
||
|
}
|
||
|
|
||
|
enum E {
|
||
|
B
|
||
|
~
|
||
|
!!! In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
|
||
|
}
|
||
|
|
||
|
enum E {
|
||
|
C
|
||
|
~
|
||
|
!!! In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
|
||
|
}
|