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