2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/funduleUsedAcrossFileBoundary_file1.ts ===
|
|
|
|
declare function Q<T>(value: T): string;
|
|
|
|
>Q : typeof Q
|
|
|
|
>T : T
|
|
|
|
>value : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
declare module Q {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Q : typeof Q
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface Promise<T> {
|
|
|
|
>Promise : Promise<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
foo: string;
|
|
|
|
>foo : string
|
|
|
|
}
|
|
|
|
export function defer<T>(): string;
|
2014-08-28 21:52:44 +02:00
|
|
|
>defer : <T>() => string
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/compiler/funduleUsedAcrossFileBoundary_file2.ts ===
|
|
|
|
function promiseWithCancellation<T>(promise: Q.Promise<T>) {
|
2014-08-28 21:52:44 +02:00
|
|
|
>promiseWithCancellation : <T>(promise: Q.Promise<T>) => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
2014-08-25 19:36:12 +02:00
|
|
|
>promise : Q.Promise<T>
|
2014-08-28 21:40:58 +02:00
|
|
|
>Q : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Promise : Q.Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
|
|
|
|
var deferred = Q.defer<T>(); // used to be an error
|
|
|
|
>deferred : string
|
|
|
|
>Q.defer<T>() : string
|
2014-08-28 21:52:44 +02:00
|
|
|
>Q.defer : <T>() => string
|
2014-08-15 23:33:16 +02:00
|
|
|
>Q : typeof Q
|
2014-08-28 21:52:44 +02:00
|
|
|
>defer : <T>() => string
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|