29 lines
501 B
Text
29 lines
501 B
Text
=== tests/cases/compiler/enumNumbering1.ts ===
|
|
enum Test {
|
|
>Test : Test
|
|
|
|
A,
|
|
>A : Test
|
|
|
|
B,
|
|
>B : Test
|
|
|
|
C = Math.floor(Math.random() * 1000),
|
|
>C : Test
|
|
>Math.floor(Math.random() * 1000) : number
|
|
>Math.floor : (x: number) => number
|
|
>Math : Math
|
|
>floor : (x: number) => number
|
|
>Math.random() * 1000 : number
|
|
>Math.random() : number
|
|
>Math.random : () => number
|
|
>Math : Math
|
|
>random : () => number
|
|
|
|
D = 10,
|
|
>D : Test
|
|
|
|
E // Error but shouldn't be
|
|
>E : Test
|
|
}
|
|
|