TypeScript/tests/cases/compiler/enumMapBackIntoItself.ts
2014-07-12 17:30:19 -07:00

9 lines
217 B
TypeScript

enum TShirtSize {
Small,
Medium,
Large
}
var mySize = TShirtSize.Large;
var test = TShirtSize[mySize];
// specifically checking output here, bug was that test used to be undefined at runtime
test + ''