2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/ipromise3.ts ===
|
|
|
|
interface IPromise3<T> {
|
|
|
|
>IPromise3 : IPromise3<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void ): IPromise3<U>;
|
|
|
|
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => IPromise3<U>
|
|
|
|
>value : T
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
>error : (error: any) => IPromise3<U>
|
|
|
|
>error : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
>progress : (progress: any) => void
|
|
|
|
>progress : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
then<U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void ): IPromise3<U>;
|
|
|
|
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => IPromise3<U>
|
|
|
|
>value : T
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
>error : (error: any) => U
|
|
|
|
>error : any
|
|
|
|
>U : U
|
|
|
|
>progress : (progress: any) => void
|
|
|
|
>progress : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
then<U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void ): IPromise3<U>;
|
|
|
|
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => U
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
>U : U
|
|
|
|
>error : (error: any) => IPromise3<U>
|
|
|
|
>error : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
>progress : (progress: any) => void
|
|
|
|
>progress : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
then<U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void ): IPromise3<U>;
|
|
|
|
>then : { <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: T) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => U
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
>U : U
|
|
|
|
>error : (error: any) => U
|
|
|
|
>error : any
|
|
|
|
>U : U
|
|
|
|
>progress : (progress: any) => void
|
|
|
|
>progress : any
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>U : U
|
|
|
|
|
|
|
|
done? <U>(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void ): void;
|
|
|
|
>done : <U>(success?: (value: T) => any, error?: (error: any) => any, progress?: (progress: any) => void) => void
|
|
|
|
>U : U
|
|
|
|
>success : (value: T) => any
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
>error : (error: any) => any
|
|
|
|
>error : any
|
|
|
|
>progress : (progress: any) => void
|
|
|
|
>progress : any
|
|
|
|
}
|
|
|
|
var p1: IPromise3<string>;
|
|
|
|
>p1 : IPromise3<string>
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var p2: IPromise3<string> = p1.then(function (x) {
|
|
|
|
>p2 : IPromise3<string>
|
2014-08-19 04:56:03 +02:00
|
|
|
>IPromise3 : IPromise3<T>
|
2014-08-22 03:39:46 +02:00
|
|
|
>p1.then(function (x) { return x;}) : IPromise3<string>
|
2014-08-15 23:33:16 +02:00
|
|
|
>p1.then : { <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
|
|
|
|
>p1 : IPromise3<string>
|
|
|
|
>then : { <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => IPromise3<U>, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => IPromise3<U>, progress?: (progress: any) => void): IPromise3<U>; <U>(success?: (value: string) => U, error?: (error: any) => U, progress?: (progress: any) => void): IPromise3<U>; }
|
2014-08-22 03:39:46 +02:00
|
|
|
>function (x) { return x;} : (x: string) => string
|
2014-08-15 23:33:16 +02:00
|
|
|
>x : string
|
|
|
|
|
|
|
|
return x;
|
|
|
|
>x : string
|
|
|
|
|
|
|
|
});
|
|
|
|
|