53 lines
3.1 KiB
Text
53 lines
3.1 KiB
Text
=== tests/cases/compiler/contextualSignatureInstantiation2.ts ===
|
|
// dot f g x = f(g(x))
|
|
var dot: <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T) => (_: U) => S;
|
|
>dot : Symbol(dot, Decl(contextualSignatureInstantiation2.ts, 1, 3))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 1, 10))
|
|
>S : Symbol(S, Decl(contextualSignatureInstantiation2.ts, 1, 12))
|
|
>f : Symbol(f, Decl(contextualSignatureInstantiation2.ts, 1, 16))
|
|
>_ : Symbol(_, Decl(contextualSignatureInstantiation2.ts, 1, 20))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 1, 10))
|
|
>S : Symbol(S, Decl(contextualSignatureInstantiation2.ts, 1, 12))
|
|
>U : Symbol(U, Decl(contextualSignatureInstantiation2.ts, 1, 36))
|
|
>g : Symbol(g, Decl(contextualSignatureInstantiation2.ts, 1, 39))
|
|
>_ : Symbol(_, Decl(contextualSignatureInstantiation2.ts, 1, 43))
|
|
>U : Symbol(U, Decl(contextualSignatureInstantiation2.ts, 1, 36))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 1, 10))
|
|
>_ : Symbol(_, Decl(contextualSignatureInstantiation2.ts, 1, 59))
|
|
>U : Symbol(U, Decl(contextualSignatureInstantiation2.ts, 1, 36))
|
|
>S : Symbol(S, Decl(contextualSignatureInstantiation2.ts, 1, 12))
|
|
|
|
dot = <T, S>(f: (_: T) => S) => <U>(g: (_: U) => T): (r:U) => S => (x) => f(g(x));
|
|
>dot : Symbol(dot, Decl(contextualSignatureInstantiation2.ts, 1, 3))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 2, 7))
|
|
>S : Symbol(S, Decl(contextualSignatureInstantiation2.ts, 2, 9))
|
|
>f : Symbol(f, Decl(contextualSignatureInstantiation2.ts, 2, 13))
|
|
>_ : Symbol(_, Decl(contextualSignatureInstantiation2.ts, 2, 17))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 2, 7))
|
|
>S : Symbol(S, Decl(contextualSignatureInstantiation2.ts, 2, 9))
|
|
>U : Symbol(U, Decl(contextualSignatureInstantiation2.ts, 2, 33))
|
|
>g : Symbol(g, Decl(contextualSignatureInstantiation2.ts, 2, 36))
|
|
>_ : Symbol(_, Decl(contextualSignatureInstantiation2.ts, 2, 40))
|
|
>U : Symbol(U, Decl(contextualSignatureInstantiation2.ts, 2, 33))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 2, 7))
|
|
>r : Symbol(r, Decl(contextualSignatureInstantiation2.ts, 2, 54))
|
|
>U : Symbol(U, Decl(contextualSignatureInstantiation2.ts, 2, 33))
|
|
>S : Symbol(S, Decl(contextualSignatureInstantiation2.ts, 2, 9))
|
|
>x : Symbol(x, Decl(contextualSignatureInstantiation2.ts, 2, 68))
|
|
>f : Symbol(f, Decl(contextualSignatureInstantiation2.ts, 2, 13))
|
|
>g : Symbol(g, Decl(contextualSignatureInstantiation2.ts, 2, 36))
|
|
>x : Symbol(x, Decl(contextualSignatureInstantiation2.ts, 2, 68))
|
|
|
|
var id: <T>(x:T) => T;
|
|
>id : Symbol(id, Decl(contextualSignatureInstantiation2.ts, 3, 3))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 3, 9))
|
|
>x : Symbol(x, Decl(contextualSignatureInstantiation2.ts, 3, 12))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 3, 9))
|
|
>T : Symbol(T, Decl(contextualSignatureInstantiation2.ts, 3, 9))
|
|
|
|
var r23 = dot(id)(id);
|
|
>r23 : Symbol(r23, Decl(contextualSignatureInstantiation2.ts, 4, 3))
|
|
>dot : Symbol(dot, Decl(contextualSignatureInstantiation2.ts, 1, 3))
|
|
>id : Symbol(id, Decl(contextualSignatureInstantiation2.ts, 3, 3))
|
|
>id : Symbol(id, Decl(contextualSignatureInstantiation2.ts, 3, 3))
|
|
|