TypeScript/tests/cases/compiler/innerTypeArgumentInference.ts

4 lines
111 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface Generator<T> { (): T; }
function Generate<U>(func: Generator<U>): U {
return Generate(func);
}