2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/recursiveGenericMethodCall.ts ===
|
|
|
|
interface Generator<T> { (): T; }
|
|
|
|
>Generator : Generator<T>
|
|
|
|
>T : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
function Generate<T>(func: Generator<T>): T {
|
|
|
|
>Generate : <T>(func: Generator<T>) => T
|
|
|
|
>T : T
|
|
|
|
>func : Generator<T>
|
2014-08-19 04:56:03 +02:00
|
|
|
>Generator : Generator<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
return Generate(func);
|
|
|
|
>Generate(func) : T
|
|
|
|
>Generate : <T>(func: Generator<T>) => T
|
|
|
|
>func : Generator<T>
|
|
|
|
}
|
|
|
|
|