Skip to content

Commit c626d9d

Browse files
committed
Accept new baselines
1 parent 0756aa1 commit c626d9d

File tree

2 files changed

+784
-0
lines changed

2 files changed

+784
-0
lines changed
Lines changed: 366 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,366 @@
1+
=== tests/cases/compiler/strictFunctionTypesErrors.ts ===
2+
export {}
3+
4+
5+
declare let f1: (x: Object) => Object;
6+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
7+
>x : Symbol(x, Decl(strictFunctionTypesErrors.ts, 3, 17))
8+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
9+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
10+
11+
declare let f2: (x: Object) => string;
12+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
13+
>x : Symbol(x, Decl(strictFunctionTypesErrors.ts, 4, 17))
14+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
15+
16+
declare let f3: (x: string) => Object;
17+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
18+
>x : Symbol(x, Decl(strictFunctionTypesErrors.ts, 5, 17))
19+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
20+
21+
declare let f4: (x: string) => string;
22+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
23+
>x : Symbol(x, Decl(strictFunctionTypesErrors.ts, 6, 17))
24+
25+
f1 = f2; // Ok
26+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
27+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
28+
29+
f1 = f3; // Error
30+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
31+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
32+
33+
f1 = f4; // Error
34+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
35+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
36+
37+
f2 = f1; // Error
38+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
39+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
40+
41+
f2 = f3; // Error
42+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
43+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
44+
45+
f2 = f4; // Error
46+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
47+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
48+
49+
f3 = f1; // Ok
50+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
51+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
52+
53+
f3 = f2; // Ok
54+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
55+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
56+
57+
f3 = f4; // Ok
58+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
59+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
60+
61+
f4 = f1; // Error
62+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
63+
>f1 : Symbol(f1, Decl(strictFunctionTypesErrors.ts, 3, 11))
64+
65+
f4 = f2; // Ok
66+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
67+
>f2 : Symbol(f2, Decl(strictFunctionTypesErrors.ts, 4, 11))
68+
69+
f4 = f3; // Error
70+
>f4 : Symbol(f4, Decl(strictFunctionTypesErrors.ts, 6, 11))
71+
>f3 : Symbol(f3, Decl(strictFunctionTypesErrors.ts, 5, 11))
72+
73+
type Func<T, U> = (x: T) => U;
74+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
75+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 24, 10))
76+
>U : Symbol(U, Decl(strictFunctionTypesErrors.ts, 24, 12))
77+
>x : Symbol(x, Decl(strictFunctionTypesErrors.ts, 24, 19))
78+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 24, 10))
79+
>U : Symbol(U, Decl(strictFunctionTypesErrors.ts, 24, 12))
80+
81+
declare let g1: Func<Object, Object>;
82+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
83+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
84+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
85+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
86+
87+
declare let g2: Func<Object, string>;
88+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
89+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
90+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
91+
92+
declare let g3: Func<string, Object>;
93+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
94+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
95+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
96+
97+
declare let g4: Func<string, string>;
98+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
99+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
100+
101+
g1 = g2; // Ok
102+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
103+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
104+
105+
g1 = g3; // Error
106+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
107+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
108+
109+
g1 = g4; // Error
110+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
111+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
112+
113+
g2 = g1; // Error
114+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
115+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
116+
117+
g2 = g3; // Error
118+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
119+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
120+
121+
g2 = g4; // Error
122+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
123+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
124+
125+
g3 = g1; // Ok
126+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
127+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
128+
129+
g3 = g2; // Ok
130+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
131+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
132+
133+
g3 = g4; // Ok
134+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
135+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
136+
137+
g4 = g1; // Error
138+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
139+
>g1 : Symbol(g1, Decl(strictFunctionTypesErrors.ts, 26, 11))
140+
141+
g4 = g2; // Ok
142+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
143+
>g2 : Symbol(g2, Decl(strictFunctionTypesErrors.ts, 27, 11))
144+
145+
g4 = g3; // Error
146+
>g4 : Symbol(g4, Decl(strictFunctionTypesErrors.ts, 29, 11))
147+
>g3 : Symbol(g3, Decl(strictFunctionTypesErrors.ts, 28, 11))
148+
149+
declare let h1: Func<Func<Object, void>, Object>;
150+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
151+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
152+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
153+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
154+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
155+
156+
declare let h2: Func<Func<Object, void>, string>;
157+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
158+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
159+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
160+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
161+
162+
declare let h3: Func<Func<string, void>, Object>;
163+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
164+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
165+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
166+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
167+
168+
declare let h4: Func<Func<string, void>, string>;
169+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
170+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
171+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
172+
173+
h1 = h2; // Ok
174+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
175+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
176+
177+
h1 = h3; // Ok
178+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
179+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
180+
181+
h1 = h4; // Ok
182+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
183+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
184+
185+
h2 = h1; // Error
186+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
187+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
188+
189+
h2 = h3; // Error
190+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
191+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
192+
193+
h2 = h4; // Ok
194+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
195+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
196+
197+
h3 = h1; // Error
198+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
199+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
200+
201+
h3 = h2; // Error
202+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
203+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
204+
205+
h3 = h4; // Ok
206+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
207+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
208+
209+
h4 = h1; // Error
210+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
211+
>h1 : Symbol(h1, Decl(strictFunctionTypesErrors.ts, 47, 11))
212+
213+
h4 = h2; // Error
214+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
215+
>h2 : Symbol(h2, Decl(strictFunctionTypesErrors.ts, 48, 11))
216+
217+
h4 = h3; // Error
218+
>h4 : Symbol(h4, Decl(strictFunctionTypesErrors.ts, 50, 11))
219+
>h3 : Symbol(h3, Decl(strictFunctionTypesErrors.ts, 49, 11))
220+
221+
declare let i1: Func<Object, Func<Object, void>>;
222+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
223+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
224+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
225+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
226+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
227+
228+
declare let i2: Func<Object, Func<string, void>>;
229+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
230+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
231+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
232+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
233+
234+
declare let i3: Func<string, Func<Object, void>>;
235+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
236+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
237+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
238+
>Object : Symbol(Object, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
239+
240+
declare let i4: Func<string, Func<string, void>>;
241+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
242+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
243+
>Func : Symbol(Func, Decl(strictFunctionTypesErrors.ts, 22, 8))
244+
245+
i1 = i2; // Error
246+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
247+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
248+
249+
i1 = i3; // Error
250+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
251+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
252+
253+
i1 = i4; // Error
254+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
255+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
256+
257+
i2 = i1; // Ok
258+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
259+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
260+
261+
i2 = i3; // Error
262+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
263+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
264+
265+
i2 = i4; // Error
266+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
267+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
268+
269+
i3 = i1; // Ok
270+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
271+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
272+
273+
i3 = i2; // Error
274+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
275+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
276+
277+
i3 = i4; // Error
278+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
279+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
280+
281+
i4 = i1; // Ok
282+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
283+
>i1 : Symbol(i1, Decl(strictFunctionTypesErrors.ts, 68, 11))
284+
285+
i4 = i2; // Ok
286+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
287+
>i2 : Symbol(i2, Decl(strictFunctionTypesErrors.ts, 69, 11))
288+
289+
i4 = i3; // Ok
290+
>i4 : Symbol(i4, Decl(strictFunctionTypesErrors.ts, 71, 11))
291+
>i3 : Symbol(i3, Decl(strictFunctionTypesErrors.ts, 70, 11))
292+
293+
interface Animal { animal: void }
294+
>Animal : Symbol(Animal, Decl(strictFunctionTypesErrors.ts, 87, 8))
295+
>animal : Symbol(Animal.animal, Decl(strictFunctionTypesErrors.ts, 89, 18))
296+
297+
interface Dog extends Animal { dog: void }
298+
>Dog : Symbol(Dog, Decl(strictFunctionTypesErrors.ts, 89, 33))
299+
>Animal : Symbol(Animal, Decl(strictFunctionTypesErrors.ts, 87, 8))
300+
>dog : Symbol(Dog.dog, Decl(strictFunctionTypesErrors.ts, 90, 30))
301+
302+
interface Cat extends Animal { cat: void }
303+
>Cat : Symbol(Cat, Decl(strictFunctionTypesErrors.ts, 90, 42))
304+
>Animal : Symbol(Animal, Decl(strictFunctionTypesErrors.ts, 87, 8))
305+
>cat : Symbol(Cat.cat, Decl(strictFunctionTypesErrors.ts, 91, 30))
306+
307+
interface Comparer1<T> {
308+
>Comparer1 : Symbol(Comparer1, Decl(strictFunctionTypesErrors.ts, 91, 42))
309+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 93, 20))
310+
311+
compare(a: T, b: T): number;
312+
>compare : Symbol(Comparer1.compare, Decl(strictFunctionTypesErrors.ts, 93, 24))
313+
>a : Symbol(a, Decl(strictFunctionTypesErrors.ts, 94, 12))
314+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 93, 20))
315+
>b : Symbol(b, Decl(strictFunctionTypesErrors.ts, 94, 17))
316+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 93, 20))
317+
}
318+
319+
declare let animalComparer1: Comparer1<Animal>;
320+
>animalComparer1 : Symbol(animalComparer1, Decl(strictFunctionTypesErrors.ts, 97, 11))
321+
>Comparer1 : Symbol(Comparer1, Decl(strictFunctionTypesErrors.ts, 91, 42))
322+
>Animal : Symbol(Animal, Decl(strictFunctionTypesErrors.ts, 87, 8))
323+
324+
declare let dogComparer1: Comparer1<Dog>;
325+
>dogComparer1 : Symbol(dogComparer1, Decl(strictFunctionTypesErrors.ts, 98, 11))
326+
>Comparer1 : Symbol(Comparer1, Decl(strictFunctionTypesErrors.ts, 91, 42))
327+
>Dog : Symbol(Dog, Decl(strictFunctionTypesErrors.ts, 89, 33))
328+
329+
animalComparer1 = dogComparer1; // Ok
330+
>animalComparer1 : Symbol(animalComparer1, Decl(strictFunctionTypesErrors.ts, 97, 11))
331+
>dogComparer1 : Symbol(dogComparer1, Decl(strictFunctionTypesErrors.ts, 98, 11))
332+
333+
dogComparer1 = animalComparer1; // Ok
334+
>dogComparer1 : Symbol(dogComparer1, Decl(strictFunctionTypesErrors.ts, 98, 11))
335+
>animalComparer1 : Symbol(animalComparer1, Decl(strictFunctionTypesErrors.ts, 97, 11))
336+
337+
interface Comparer2<T> {
338+
>Comparer2 : Symbol(Comparer2, Decl(strictFunctionTypesErrors.ts, 101, 31))
339+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 103, 20))
340+
341+
compare: (a: T, b: T) => number;
342+
>compare : Symbol(Comparer2.compare, Decl(strictFunctionTypesErrors.ts, 103, 24))
343+
>a : Symbol(a, Decl(strictFunctionTypesErrors.ts, 104, 14))
344+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 103, 20))
345+
>b : Symbol(b, Decl(strictFunctionTypesErrors.ts, 104, 19))
346+
>T : Symbol(T, Decl(strictFunctionTypesErrors.ts, 103, 20))
347+
}
348+
349+
declare let animalComparer2: Comparer2<Animal>;
350+
>animalComparer2 : Symbol(animalComparer2, Decl(strictFunctionTypesErrors.ts, 107, 11))
351+
>Comparer2 : Symbol(Comparer2, Decl(strictFunctionTypesErrors.ts, 101, 31))
352+
>Animal : Symbol(Animal, Decl(strictFunctionTypesErrors.ts, 87, 8))
353+
354+
declare let dogComparer2: Comparer2<Dog>;
355+
>dogComparer2 : Symbol(dogComparer2, Decl(strictFunctionTypesErrors.ts, 108, 11))
356+
>Comparer2 : Symbol(Comparer2, Decl(strictFunctionTypesErrors.ts, 101, 31))
357+
>Dog : Symbol(Dog, Decl(strictFunctionTypesErrors.ts, 89, 33))
358+
359+
animalComparer2 = dogComparer2; // Error
360+
>animalComparer2 : Symbol(animalComparer2, Decl(strictFunctionTypesErrors.ts, 107, 11))
361+
>dogComparer2 : Symbol(dogComparer2, Decl(strictFunctionTypesErrors.ts, 108, 11))
362+
363+
dogComparer2 = animalComparer2; // Ok
364+
>dogComparer2 : Symbol(dogComparer2, Decl(strictFunctionTypesErrors.ts, 108, 11))
365+
>animalComparer2 : Symbol(animalComparer2, Decl(strictFunctionTypesErrors.ts, 107, 11))
366+

0 commit comments

Comments
 (0)