2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/inferentialTypingWithFunctionType.ts ===
|
|
|
|
declare function map<T, U>(x: T, f: (s: T) => U): U;
|
2015-04-13 23:01:57 +02:00
|
|
|
>map : <T, U>(x: T, f: (s: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionType.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(inferentialTypingWithFunctionType.ts, 0, 21))
|
|
|
|
>U : U, Symbol(U, Decl(inferentialTypingWithFunctionType.ts, 0, 23))
|
|
|
|
>x : T, Symbol(x, Decl(inferentialTypingWithFunctionType.ts, 0, 27))
|
|
|
|
>T : T, Symbol(T, Decl(inferentialTypingWithFunctionType.ts, 0, 21))
|
|
|
|
>f : (s: T) => U, Symbol(f, Decl(inferentialTypingWithFunctionType.ts, 0, 32))
|
|
|
|
>s : T, Symbol(s, Decl(inferentialTypingWithFunctionType.ts, 0, 37))
|
|
|
|
>T : T, Symbol(T, Decl(inferentialTypingWithFunctionType.ts, 0, 21))
|
|
|
|
>U : U, Symbol(U, Decl(inferentialTypingWithFunctionType.ts, 0, 23))
|
|
|
|
>U : U, Symbol(U, Decl(inferentialTypingWithFunctionType.ts, 0, 23))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
declare function identity<V>(y: V): V;
|
2015-04-13 23:01:57 +02:00
|
|
|
>identity : <V>(y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionType.ts, 0, 52))
|
|
|
|
>V : V, Symbol(V, Decl(inferentialTypingWithFunctionType.ts, 1, 26))
|
|
|
|
>y : V, Symbol(y, Decl(inferentialTypingWithFunctionType.ts, 1, 29))
|
|
|
|
>V : V, Symbol(V, Decl(inferentialTypingWithFunctionType.ts, 1, 26))
|
|
|
|
>V : V, Symbol(V, Decl(inferentialTypingWithFunctionType.ts, 1, 26))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var s = map("", identity);
|
2015-04-13 23:01:57 +02:00
|
|
|
>s : string, Symbol(s, Decl(inferentialTypingWithFunctionType.ts, 3, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>map("", identity) : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>map : <T, U>(x: T, f: (s: T) => U) => U, Symbol(map, Decl(inferentialTypingWithFunctionType.ts, 0, 0))
|
2015-04-13 21:36:11 +02:00
|
|
|
>"" : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>identity : <V>(y: V) => V, Symbol(identity, Decl(inferentialTypingWithFunctionType.ts, 0, 52))
|
2014-08-15 23:33:16 +02:00
|
|
|
|