TypeScript/tests/baselines/reference/indexIntoEnum.types

14 lines
347 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/indexIntoEnum.ts ===
module M {
2015-04-13 23:01:57 +02:00
>M : typeof M, Symbol(M, Decl(indexIntoEnum.ts, 0, 0))
2014-08-15 23:33:16 +02:00
enum E { }
2015-04-13 23:01:57 +02:00
>E : E, Symbol(E, Decl(indexIntoEnum.ts, 0, 10))
2014-08-15 23:33:16 +02:00
var x = E[0];
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(indexIntoEnum.ts, 4, 7))
2014-08-15 23:33:16 +02:00
>E[0] : string
2015-04-13 23:01:57 +02:00
>E : typeof E, Symbol(E, Decl(indexIntoEnum.ts, 0, 10))
2015-04-13 21:36:11 +02:00
>0 : number
2014-08-15 23:33:16 +02:00
}