21 lines
419 B
Text
21 lines
419 B
Text
|
=== 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>
|
||
|
>Generator : Generator
|
||
|
>T : T
|
||
|
>T : T
|
||
|
|
||
|
return Generate(func);
|
||
|
>Generate(func) : T
|
||
|
>Generate : <T>(func: Generator<T>) => T
|
||
|
>func : Generator<T>
|
||
|
}
|
||
|
|