Microsoft/TypeScript — pull request #1113 by CyrusNajmabadi (2014-11-10 21:45:25+00:00)
Title: Allow references to const enums if they are being preserved in the final...

... output.

This is useful for some of our scenarios where we're consuming the same const enum in two different ways. One way being the normal const-enum case where we just use the constant values from it. And, the other, being when we use it more for testing/code-gen purposes and we want to be able to reflect over the names and values in it.