23 lines
451 B
Text
23 lines
451 B
Text
=== tests/cases/conformance/ambient/ambientEnumDeclaration2.ts ===
|
|
// In ambient enum declarations that specify no const modifier, enum member declarations
|
|
// that omit a value are considered computed members (as opposed to having auto- incremented values assigned).
|
|
|
|
declare enum E {
|
|
>E : E
|
|
|
|
a, // E.a
|
|
>a : E
|
|
|
|
b, // E.b
|
|
>b : E
|
|
}
|
|
|
|
declare const enum E1 {
|
|
>E1 : E1
|
|
|
|
a, // E.a = 0
|
|
>a : E1
|
|
|
|
b, // E.b = 1
|
|
>b : E1
|
|
}
|