31 lines
531 B
Text
31 lines
531 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
|
|
>1000 : number
|
|
|
|
D = 10,
|
|
>D : Test
|
|
>10 : number
|
|
|
|
E // Error but shouldn't be
|
|
>E : Test
|
|
}
|
|
|