TypeScript/tests/baselines/reference/indexIntoEnum.types
2015-04-13 14:29:37 -07:00

14 lines
347 B
Plaintext

=== tests/cases/compiler/indexIntoEnum.ts ===
module M {
>M : typeof M, Symbol(M, Decl(indexIntoEnum.ts, 0, 0))
enum E { }
>E : E, Symbol(E, Decl(indexIntoEnum.ts, 0, 10))
var x = E[0];
>x : string, Symbol(x, Decl(indexIntoEnum.ts, 4, 7))
>E[0] : string
>E : typeof E, Symbol(E, Decl(indexIntoEnum.ts, 0, 10))
>0 : number
}