33 lines
317 B
Text
33 lines
317 B
Text
=== tests/cases/compiler/constEnumDeclarations.ts ===
|
|
|
|
const enum E {
|
|
>E : E
|
|
|
|
A = 1,
|
|
>A : E
|
|
>1 : number
|
|
|
|
B = 2,
|
|
>B : E
|
|
>2 : number
|
|
|
|
C = A | B
|
|
>C : E
|
|
>A | B : number
|
|
>A : E
|
|
>B : E
|
|
}
|
|
|
|
const enum E2 {
|
|
>E2 : E2
|
|
|
|
A = 1,
|
|
>A : E2
|
|
>1 : number
|
|
|
|
B,
|
|
>B : E2
|
|
|
|
C
|
|
>C : E2
|
|
}
|