TypeScript/tests/baselines/reference/indexIntoEnum.types

14 lines
181 B
Plaintext
Raw Normal View History

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