This file contains hidden or 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
type AnyFunction = () => any; | |
/** | |
* Returns true if running `func()` reaches a return statement. | |
* Otherwise, if it loops forever, returns false. | |
* @author God. This function is always right. | |
*/ | |
declare function doesReturn(func: AnyFunction): boolean; | |
function test(): void | never { |