TypeScript/tests/baselines/reference/innerTypeArgumentInference.types

20 lines
1 KiB
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/innerTypeArgumentInference.ts ===
interface Generator<T> { (): T; }
2015-04-13 23:01:57 +02:00
>Generator : Generator<T>, Symbol(Generator, Decl(innerTypeArgumentInference.ts, 0, 0))
>T : T, Symbol(T, Decl(innerTypeArgumentInference.ts, 0, 20))
>T : T, Symbol(T, Decl(innerTypeArgumentInference.ts, 0, 20))
2014-08-15 23:33:16 +02:00
function Generate<U>(func: Generator<U>): U {
2015-04-13 23:01:57 +02:00
>Generate : <U>(func: Generator<U>) => U, Symbol(Generate, Decl(innerTypeArgumentInference.ts, 0, 33))
>U : U, Symbol(U, Decl(innerTypeArgumentInference.ts, 1, 18))
>func : Generator<U>, Symbol(func, Decl(innerTypeArgumentInference.ts, 1, 21))
>Generator : Generator<T>, Symbol(Generator, Decl(innerTypeArgumentInference.ts, 0, 0))
>U : U, Symbol(U, Decl(innerTypeArgumentInference.ts, 1, 18))
>U : U, Symbol(U, Decl(innerTypeArgumentInference.ts, 1, 18))
2014-08-15 23:33:16 +02:00
return Generate(func);
>Generate(func) : U
2015-04-13 23:01:57 +02:00
>Generate : <U>(func: Generator<U>) => U, Symbol(Generate, Decl(innerTypeArgumentInference.ts, 0, 33))
>func : Generator<U>, Symbol(func, Decl(innerTypeArgumentInference.ts, 1, 21))
2014-08-15 23:33:16 +02:00
}