TypeScript/tests/baselines/reference/enumMapBackIntoItself.symbols
2015-04-15 16:44:20 -07:00

29 lines
1.1 KiB
Plaintext

=== tests/cases/compiler/enumMapBackIntoItself.ts ===
enum TShirtSize {
>TShirtSize : Symbol(TShirtSize, Decl(enumMapBackIntoItself.ts, 0, 0))
Small,
>Small : Symbol(TShirtSize.Small, Decl(enumMapBackIntoItself.ts, 0, 17))
Medium,
>Medium : Symbol(TShirtSize.Medium, Decl(enumMapBackIntoItself.ts, 1, 9))
Large
>Large : Symbol(TShirtSize.Large, Decl(enumMapBackIntoItself.ts, 2, 10))
}
var mySize = TShirtSize.Large;
>mySize : Symbol(mySize, Decl(enumMapBackIntoItself.ts, 5, 3))
>TShirtSize.Large : Symbol(TShirtSize.Large, Decl(enumMapBackIntoItself.ts, 2, 10))
>TShirtSize : Symbol(TShirtSize, Decl(enumMapBackIntoItself.ts, 0, 0))
>Large : Symbol(TShirtSize.Large, Decl(enumMapBackIntoItself.ts, 2, 10))
var test = TShirtSize[mySize];
>test : Symbol(test, Decl(enumMapBackIntoItself.ts, 6, 3))
>TShirtSize : Symbol(TShirtSize, Decl(enumMapBackIntoItself.ts, 0, 0))
>mySize : Symbol(mySize, Decl(enumMapBackIntoItself.ts, 5, 3))
// specifically checking output here, bug was that test used to be undefined at runtime
test + ''
>test : Symbol(test, Decl(enumMapBackIntoItself.ts, 6, 3))