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