File: assignmentCompatWithGenericCallSignatures3.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (52 lines) | stat: -rw-r--r-- 3,312 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
=== 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))