14 lines
No EOL
307 B
Text
14 lines
No EOL
307 B
Text
==== tests/cases/compiler/enumsWithMultipleDeclarations2.ts (1 errors) ====
|
|
enum E {
|
|
A
|
|
}
|
|
|
|
enum E {
|
|
B = 1
|
|
}
|
|
|
|
enum E {
|
|
C
|
|
~
|
|
!!! In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
|
|
} |