mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
//// [tests/cases/compiler/enumNumbering1.ts] ////
|
|
|
|
=== enumNumbering1.ts ===
|
|
enum Test {
|
|
>Test : Symbol(Test, Decl(enumNumbering1.ts, 0, 0))
|
|
|
|
A,
|
|
>A : Symbol(Test.A, Decl(enumNumbering1.ts, 0, 11))
|
|
|
|
B,
|
|
>B : Symbol(Test.B, Decl(enumNumbering1.ts, 1, 6))
|
|
|
|
C = Math.floor(Math.random() * 1000),
|
|
>C : Symbol(Test.C, Decl(enumNumbering1.ts, 2, 6))
|
|
>Math.floor : Symbol(Math.floor, Decl(lib.es5.d.ts, --, --))
|
|
>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>floor : Symbol(Math.floor, Decl(lib.es5.d.ts, --, --))
|
|
>Math.random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
|
|
>Math : Symbol(Math, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>random : Symbol(Math.random, Decl(lib.es5.d.ts, --, --))
|
|
|
|
D = 10,
|
|
>D : Symbol(Test.D, Decl(enumNumbering1.ts, 3, 41))
|
|
|
|
E // Error but shouldn't be
|
|
>E : Symbol(Test.E, Decl(enumNumbering1.ts, 4, 11))
|
|
}
|
|
|