76 lines
1.6 KiB
Text
76 lines
1.6 KiB
Text
=== tests/cases/compiler/declFileEnums.ts ===
|
|
|
|
enum e1 {
|
|
>e1 : Symbol(e1, Decl(declFileEnums.ts, 0, 0))
|
|
|
|
a,
|
|
>a : Symbol(e1.a, Decl(declFileEnums.ts, 1, 9))
|
|
|
|
b,
|
|
>b : Symbol(e1.b, Decl(declFileEnums.ts, 2, 6))
|
|
|
|
c
|
|
>c : Symbol(e1.c, Decl(declFileEnums.ts, 3, 6))
|
|
}
|
|
|
|
enum e2 {
|
|
>e2 : Symbol(e2, Decl(declFileEnums.ts, 5, 1))
|
|
|
|
a = 10,
|
|
>a : Symbol(e2.a, Decl(declFileEnums.ts, 7, 9))
|
|
|
|
b = a + 2,
|
|
>b : Symbol(e2.b, Decl(declFileEnums.ts, 8, 11))
|
|
>a : Symbol(e2.a, Decl(declFileEnums.ts, 7, 9))
|
|
|
|
c = 10,
|
|
>c : Symbol(e2.c, Decl(declFileEnums.ts, 9, 14))
|
|
}
|
|
|
|
enum e3 {
|
|
>e3 : Symbol(e3, Decl(declFileEnums.ts, 11, 1))
|
|
|
|
a = 10,
|
|
>a : Symbol(e3.a, Decl(declFileEnums.ts, 13, 9))
|
|
|
|
b = Math.PI,
|
|
>b : Symbol(e3.b, Decl(declFileEnums.ts, 14, 11))
|
|
>Math.PI : Symbol(Math.PI, Decl(lib.d.ts, 534, 19))
|
|
>Math : Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11))
|
|
>PI : Symbol(Math.PI, Decl(lib.d.ts, 534, 19))
|
|
|
|
c = a + 3
|
|
>c : Symbol(e3.c, Decl(declFileEnums.ts, 15, 16))
|
|
>a : Symbol(e3.a, Decl(declFileEnums.ts, 13, 9))
|
|
}
|
|
|
|
enum e4 {
|
|
>e4 : Symbol(e4, Decl(declFileEnums.ts, 17, 1))
|
|
|
|
a,
|
|
>a : Symbol(e4.a, Decl(declFileEnums.ts, 19, 9))
|
|
|
|
b,
|
|
>b : Symbol(e4.b, Decl(declFileEnums.ts, 20, 6))
|
|
|
|
c,
|
|
>c : Symbol(e4.c, Decl(declFileEnums.ts, 21, 6))
|
|
|
|
d = 10,
|
|
>d : Symbol(e4.d, Decl(declFileEnums.ts, 22, 6))
|
|
|
|
e
|
|
>e : Symbol(e4.e, Decl(declFileEnums.ts, 23, 11))
|
|
}
|
|
|
|
enum e5 {
|
|
>e5 : Symbol(e5, Decl(declFileEnums.ts, 25, 1))
|
|
|
|
"Friday",
|
|
"Saturday",
|
|
"Sunday",
|
|
"Weekend days"
|
|
}
|
|
|
|
|
|
|