This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Typescript handles type guards fundamentally differently than it | |
// handles data in the context of a closure. | |
// | |
// This is not new, and was documented at | |
// https://github.com/microsoft/TypeScript/issues/7662 | |
// and | |
// https://github.com/microsoft/TypeScript/issues/8552 | |
// | |
// Demonstration follows. |