mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
472 B
Plaintext
17 lines
472 B
Plaintext
enumsWithMultipleDeclarations2.ts(10,3): error TS2432: In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
|
|
|
|
|
|
==== enumsWithMultipleDeclarations2.ts (1 errors) ====
|
|
enum E {
|
|
A
|
|
}
|
|
|
|
enum E {
|
|
B = 1
|
|
}
|
|
|
|
enum E {
|
|
C
|
|
~
|
|
!!! error TS2432: In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
|
|
} |