2015-10-13 19:15:39 +02:00
|
|
|
// @allowUnreachableCode: true
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
interface IPromise<T> {
|
|
|
|
then(successCallback: (promiseValue: T) => any, errorCallback?: (reason: any) => any): IPromise<any>;
|
|
|
|
}
|
|
|
|
|
|
|
|
function f() {
|
|
|
|
if (true) return b();
|
|
|
|
return d();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function b(): IPromise<void> { return null; }
|
|
|
|
function d(): IPromise<any> { return null; }
|