TypeScript/tests/baselines/reference/enumNumbering1.types
2014-08-15 14:37:48 -07:00

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
}