File: subtypingWithConstructSignatures6.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 (209 lines) | stat: -rw-r--r-- 11,238 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
=== tests/cases/conformance/types/typeRelationships/subtypesAndSuperTypes/subtypingWithConstructSignatures6.ts ===
// checking subtype relations for function types as it relates to contextual signature instantiation
// same as subtypingWithConstructSignatures4 but using class type parameters instead of generic signatures
// all are errors

class Base { foo: string; }
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))
>foo : Symbol(Base.foo, Decl(subtypingWithConstructSignatures6.ts, 4, 12))

class Derived extends Base { bar: string; }
>Derived : Symbol(Derived, Decl(subtypingWithConstructSignatures6.ts, 4, 27))
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))
>bar : Symbol(Derived.bar, Decl(subtypingWithConstructSignatures6.ts, 5, 28))

class Derived2 extends Derived { baz: string; }
>Derived2 : Symbol(Derived2, Decl(subtypingWithConstructSignatures6.ts, 5, 43))
>Derived : Symbol(Derived, Decl(subtypingWithConstructSignatures6.ts, 4, 27))
>baz : Symbol(Derived2.baz, Decl(subtypingWithConstructSignatures6.ts, 6, 32))

class OtherDerived extends Base { bing: string; }
>OtherDerived : Symbol(OtherDerived, Decl(subtypingWithConstructSignatures6.ts, 6, 47))
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))
>bing : Symbol(OtherDerived.bing, Decl(subtypingWithConstructSignatures6.ts, 7, 33))

interface A { // T
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    // M's
    a: new <T>(x: T) => T[];
>a : Symbol(A.a, Decl(subtypingWithConstructSignatures6.ts, 9, 13))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 11, 12))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 11, 15))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 11, 12))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 11, 12))

    a2: new <T>(x: T) => string[];
>a2 : Symbol(A.a2, Decl(subtypingWithConstructSignatures6.ts, 11, 28))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 12, 13))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 12, 16))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 12, 13))

    a3: new <T>(x: T) => void;
>a3 : Symbol(A.a3, Decl(subtypingWithConstructSignatures6.ts, 12, 34))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 13, 13))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 13, 16))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 13, 13))

    a4: new <T, U>(x: T, y: U) => string;
>a4 : Symbol(A.a4, Decl(subtypingWithConstructSignatures6.ts, 13, 30))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 14, 13))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 14, 15))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 14, 19))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 14, 13))
>y : Symbol(y, Decl(subtypingWithConstructSignatures6.ts, 14, 24))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 14, 15))

    a5: new <T, U>(x: (arg: T) => U) => T;
>a5 : Symbol(A.a5, Decl(subtypingWithConstructSignatures6.ts, 14, 41))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 15, 13))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 15, 15))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 15, 19))
>arg : Symbol(arg, Decl(subtypingWithConstructSignatures6.ts, 15, 23))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 15, 13))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 15, 15))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 15, 13))

    a6: new <T extends Base>(x: (arg: T) => Derived) => T;
>a6 : Symbol(A.a6, Decl(subtypingWithConstructSignatures6.ts, 15, 42))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 16, 13))
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 16, 29))
>arg : Symbol(arg, Decl(subtypingWithConstructSignatures6.ts, 16, 33))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 16, 13))
>Derived : Symbol(Derived, Decl(subtypingWithConstructSignatures6.ts, 4, 27))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 16, 13))

    a11: new <T>(x: { foo: T }, y: { foo: T; bar: T }) => Base;
>a11 : Symbol(A.a11, Decl(subtypingWithConstructSignatures6.ts, 16, 58))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 17, 14))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 17, 17))
>foo : Symbol(foo, Decl(subtypingWithConstructSignatures6.ts, 17, 21))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 17, 14))
>y : Symbol(y, Decl(subtypingWithConstructSignatures6.ts, 17, 31))
>foo : Symbol(foo, Decl(subtypingWithConstructSignatures6.ts, 17, 36))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 17, 14))
>bar : Symbol(bar, Decl(subtypingWithConstructSignatures6.ts, 17, 44))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 17, 14))
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))

    a15: new <T>(x: { a: T; b: T }) => T[];
>a15 : Symbol(A.a15, Decl(subtypingWithConstructSignatures6.ts, 17, 63))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 18, 14))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 18, 17))
>a : Symbol(a, Decl(subtypingWithConstructSignatures6.ts, 18, 21))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 18, 14))
>b : Symbol(b, Decl(subtypingWithConstructSignatures6.ts, 18, 27))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 18, 14))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 18, 14))

    a16: new <T extends Base>(x: { a: T; b: T }) => T[];
>a16 : Symbol(A.a16, Decl(subtypingWithConstructSignatures6.ts, 18, 43))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 19, 14))
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 19, 30))
>a : Symbol(a, Decl(subtypingWithConstructSignatures6.ts, 19, 34))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 19, 14))
>b : Symbol(b, Decl(subtypingWithConstructSignatures6.ts, 19, 40))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 19, 14))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 19, 14))
}

// S's
interface I<T> extends A {
>I : Symbol(I, Decl(subtypingWithConstructSignatures6.ts, 20, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 23, 12))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a: new (x: T) => T[]; 
>a : Symbol(I.a, Decl(subtypingWithConstructSignatures6.ts, 23, 26))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 24, 12))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 23, 12))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 23, 12))
}

interface I2<T> extends A {
>I2 : Symbol(I2, Decl(subtypingWithConstructSignatures6.ts, 25, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 27, 13))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a2: new (x: T) => string[]; 
>a2 : Symbol(I2.a2, Decl(subtypingWithConstructSignatures6.ts, 27, 27))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 28, 13))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 27, 13))
}

interface I3<T> extends A {
>I3 : Symbol(I3, Decl(subtypingWithConstructSignatures6.ts, 29, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 31, 13))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a3: new (x: T) => T;
>a3 : Symbol(I3.a3, Decl(subtypingWithConstructSignatures6.ts, 31, 27))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 32, 13))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 31, 13))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 31, 13))
}

interface I4<T> extends A {
>I4 : Symbol(I4, Decl(subtypingWithConstructSignatures6.ts, 33, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 35, 13))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a4: new <U>(x: T, y: U) => string; 
>a4 : Symbol(I4.a4, Decl(subtypingWithConstructSignatures6.ts, 35, 27))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 36, 13))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 36, 16))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 35, 13))
>y : Symbol(y, Decl(subtypingWithConstructSignatures6.ts, 36, 21))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 36, 13))
}

interface I5<T> extends A {
>I5 : Symbol(I5, Decl(subtypingWithConstructSignatures6.ts, 37, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 39, 13))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a5: new <U>(x: (arg: T) => U) => T; 
>a5 : Symbol(I5.a5, Decl(subtypingWithConstructSignatures6.ts, 39, 27))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 40, 13))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 40, 16))
>arg : Symbol(arg, Decl(subtypingWithConstructSignatures6.ts, 40, 20))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 39, 13))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 40, 13))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 39, 13))
}

interface I7<T> extends A {
>I7 : Symbol(I7, Decl(subtypingWithConstructSignatures6.ts, 41, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 43, 13))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a11: new <U>(x: { foo: T }, y: { foo: U; bar: U }) => Base; 
>a11 : Symbol(I7.a11, Decl(subtypingWithConstructSignatures6.ts, 43, 27))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 44, 14))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 44, 17))
>foo : Symbol(foo, Decl(subtypingWithConstructSignatures6.ts, 44, 21))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 43, 13))
>y : Symbol(y, Decl(subtypingWithConstructSignatures6.ts, 44, 31))
>foo : Symbol(foo, Decl(subtypingWithConstructSignatures6.ts, 44, 36))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 44, 14))
>bar : Symbol(bar, Decl(subtypingWithConstructSignatures6.ts, 44, 44))
>U : Symbol(U, Decl(subtypingWithConstructSignatures6.ts, 44, 14))
>Base : Symbol(Base, Decl(subtypingWithConstructSignatures6.ts, 0, 0))
}

interface I9<T> extends A {
>I9 : Symbol(I9, Decl(subtypingWithConstructSignatures6.ts, 45, 1))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 47, 13))
>A : Symbol(A, Decl(subtypingWithConstructSignatures6.ts, 7, 49))

    a16: new (x: { a: T; b: T }) => T[]; 
>a16 : Symbol(I9.a16, Decl(subtypingWithConstructSignatures6.ts, 47, 27))
>x : Symbol(x, Decl(subtypingWithConstructSignatures6.ts, 48, 14))
>a : Symbol(a, Decl(subtypingWithConstructSignatures6.ts, 48, 18))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 47, 13))
>b : Symbol(b, Decl(subtypingWithConstructSignatures6.ts, 48, 24))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 47, 13))
>T : Symbol(T, Decl(subtypingWithConstructSignatures6.ts, 47, 13))
}