TypeScript/tests/baselines/reference/enumNumbering1.types

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/enumNumbering1.ts ===
enum Test {
2015-04-13 23:01:57 +02:00
>Test : Test, Symbol(Test, Decl(enumNumbering1.ts, 0, 0))
2014-08-15 23:33:16 +02:00
A,
2015-04-13 23:01:57 +02:00
>A : Test, Symbol(Test.A, Decl(enumNumbering1.ts, 0, 11))
2014-08-15 23:33:16 +02:00
B,
2015-04-13 23:01:57 +02:00
>B : Test, Symbol(Test.B, Decl(enumNumbering1.ts, 1, 6))
2014-08-15 23:33:16 +02:00
C = Math.floor(Math.random() * 1000),
2015-04-13 23:01:57 +02:00
>C : Test, Symbol(Test.C, Decl(enumNumbering1.ts, 2, 6))
2014-08-15 23:33:16 +02:00
>Math.floor(Math.random() * 1000) : number
2015-04-13 23:01:57 +02:00
>Math.floor : (x: number) => number, Symbol(Math.floor, Decl(lib.d.ts, 582, 27))
>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11))
>floor : (x: number) => number, Symbol(Math.floor, Decl(lib.d.ts, 582, 27))
2014-08-15 23:33:16 +02:00
>Math.random() * 1000 : number
>Math.random() : number
2015-04-13 23:01:57 +02:00
>Math.random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38))
>Math : Math, Symbol(Math, Decl(lib.d.ts, 522, 1), Decl(lib.d.ts, 633, 11))
>random : () => number, Symbol(Math.random, Decl(lib.d.ts, 608, 38))
2015-04-13 21:36:11 +02:00
>1000 : number
2014-08-15 23:33:16 +02:00
D = 10,
2015-04-13 23:01:57 +02:00
>D : Test, Symbol(Test.D, Decl(enumNumbering1.ts, 3, 41))
2015-04-13 21:36:11 +02:00
>10 : number
2014-08-15 23:33:16 +02:00
E // Error but shouldn't be
2015-04-13 23:01:57 +02:00
>E : Test, Symbol(Test.E, Decl(enumNumbering1.ts, 4, 11))
2014-08-15 23:33:16 +02:00
}