TypeScript/tests/baselines/reference/assignmentCompatWithGenericCallSignatures3.symbols
2015-04-15 16:44:20 -07:00

52 lines
3.2 KiB
Text

=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithGenericCallSignatures3.ts ===
// some complex cases of assignment compat of generic signatures that stress contextual signature instantiation
interface I<T, S> {
>I : Symbol(I, Decl(assignmentCompatWithGenericCallSignatures3.ts, 0, 0))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 12))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 14))
<U>(f: (x: T) => (y: S) => U): U
>U : Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 5))
>f : Symbol(f, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 8))
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 12))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 12))
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 22))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 2, 14))
>U : Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 5))
>U : Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 3, 5))
}
var g: <T>(x: T) => <S>(y: S) => I<T, S>
>g : Symbol(g, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 3))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 8))
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 11))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 8))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 21))
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 24))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 21))
>I : Symbol(I, Decl(assignmentCompatWithGenericCallSignatures3.ts, 0, 0))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 8))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 21))
var h: <T>(x: T) => <S>(y: S) => { <U>(f: (x: T) => (y: S) => U): U }
>h : Symbol(h, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 3))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 8))
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 11))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 8))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 21))
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 24))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 21))
>U : Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 36))
>f : Symbol(f, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 39))
>x : Symbol(x, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 43))
>T : Symbol(T, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 8))
>y : Symbol(y, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 53))
>S : Symbol(S, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 21))
>U : Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 36))
>U : Symbol(U, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 36))
g = h // ok
>g : Symbol(g, Decl(assignmentCompatWithGenericCallSignatures3.ts, 6, 3))
>h : Symbol(h, Decl(assignmentCompatWithGenericCallSignatures3.ts, 7, 3))