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-25 19:36:12 +02:00
|
|
|
>Q : 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-22 03:39:46 +02:00
|
|
|
>defer : typeof defer
|
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-22 03:39:46 +02:00
|
|
|
>promiseWithCancellation : typeof promiseWithCancellation
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
2014-08-25 19:36:12 +02:00
|
|
|
>promise : Q.Promise<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>Q : Q
|
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-25 19:36:12 +02:00
|
|
|
>Q.defer : typeof Q.defer
|
2014-08-15 23:33:16 +02:00
|
|
|
>Q : typeof Q
|
2014-08-25 19:36:12 +02:00
|
|
|
>defer : typeof Q.defer
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|