30 lines
501 B
Plaintext
30 lines
501 B
Plaintext
|
=== 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
|
||
|
}
|
||
|
|