33 lines
804 B
Text
33 lines
804 B
Text
=== tests/cases/compiler/constEnumDeclarations.ts ===
|
|
|
|
const enum E {
|
|
>E : E, Symbol(E,Decl(constEnumDeclarations.ts,0,0))
|
|
|
|
A = 1,
|
|
>A : E, Symbol(E.A,Decl(constEnumDeclarations.ts,1,14))
|
|
>1 : number
|
|
|
|
B = 2,
|
|
>B : E, Symbol(E.B,Decl(constEnumDeclarations.ts,2,10))
|
|
>2 : number
|
|
|
|
C = A | B
|
|
>C : E, Symbol(E.C,Decl(constEnumDeclarations.ts,3,10))
|
|
>A | B : number
|
|
>A : E, Symbol(E.A,Decl(constEnumDeclarations.ts,1,14))
|
|
>B : E, Symbol(E.B,Decl(constEnumDeclarations.ts,2,10))
|
|
}
|
|
|
|
const enum E2 {
|
|
>E2 : E2, Symbol(E2,Decl(constEnumDeclarations.ts,5,1))
|
|
|
|
A = 1,
|
|
>A : E2, Symbol(E2.A,Decl(constEnumDeclarations.ts,7,15))
|
|
>1 : number
|
|
|
|
B,
|
|
>B : E2, Symbol(E2.B,Decl(constEnumDeclarations.ts,8,10))
|
|
|
|
C
|
|
>C : E2, Symbol(E2.C,Decl(constEnumDeclarations.ts,9,6))
|
|
}
|