23 lines
442 B
Text
23 lines
442 B
Text
|
==== tests/cases/compiler/augmentedTypesEnum3.ts (1 errors) ====
|
||
|
module E {
|
||
|
var t;
|
||
|
}
|
||
|
enum E { }
|
||
|
|
||
|
enum F { }
|
||
|
module F { var t; }
|
||
|
|
||
|
module A {
|
||
|
var o;
|
||
|
}
|
||
|
enum A {
|
||
|
b
|
||
|
}
|
||
|
enum A {
|
||
|
c
|
||
|
~
|
||
|
!!! In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.
|
||
|
}
|
||
|
module A {
|
||
|
var p;
|
||
|
}
|