332 lines
25 KiB
Text
332 lines
25 KiB
Text
=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithCallSignatures2.ts ===
|
|
// object types are identical structurally
|
|
|
|
class A {
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
foo(x: string): string { return null; }
|
|
>foo : (x: string) => string, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,2,9))
|
|
>x : string, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,3,8))
|
|
>null : null
|
|
}
|
|
|
|
class B {
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
foo(x: number): string { return null; }
|
|
>foo : (x: number) => string, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,6,9))
|
|
>x : number, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,7,8))
|
|
>null : null
|
|
}
|
|
|
|
class C<T> {
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
>T : T, Symbol(T,Decl(objectTypesIdentityWithCallSignatures2.ts,10,8))
|
|
|
|
foo(x: T): T { return null; }
|
|
>foo : (x: T) => T, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,10,12))
|
|
>x : T, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,11,8))
|
|
>T : T, Symbol(T,Decl(objectTypesIdentityWithCallSignatures2.ts,10,8))
|
|
>T : T, Symbol(T,Decl(objectTypesIdentityWithCallSignatures2.ts,10,8))
|
|
>null : null
|
|
}
|
|
|
|
interface I {
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
foo(x: boolean): string;
|
|
>foo : (x: boolean) => string, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,14,13))
|
|
>x : boolean, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,15,8))
|
|
}
|
|
|
|
interface I2<T> {
|
|
>I2 : I2<T>, Symbol(I2,Decl(objectTypesIdentityWithCallSignatures2.ts,16,1))
|
|
>T : T, Symbol(T,Decl(objectTypesIdentityWithCallSignatures2.ts,18,13))
|
|
|
|
foo(x: T): T;
|
|
>foo : (x: T) => T, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,18,17))
|
|
>x : T, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,19,8))
|
|
>T : T, Symbol(T,Decl(objectTypesIdentityWithCallSignatures2.ts,18,13))
|
|
>T : T, Symbol(T,Decl(objectTypesIdentityWithCallSignatures2.ts,18,13))
|
|
}
|
|
|
|
var a: { foo(x: Date): string }
|
|
>a : { foo(x: Date): string; }, Symbol(a,Decl(objectTypesIdentityWithCallSignatures2.ts,22,3))
|
|
>foo : (x: Date) => string, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,22,8))
|
|
>x : Date, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,22,13))
|
|
>Date : Date, Symbol(Date,Decl(lib.d.ts,633,23),Decl(lib.d.ts,815,11))
|
|
|
|
var b = { foo(x: RegExp) { return ''; } };
|
|
>b : { foo(x: RegExp): string; }, Symbol(b,Decl(objectTypesIdentityWithCallSignatures2.ts,23,3))
|
|
>{ foo(x: RegExp) { return ''; } } : { foo(x: RegExp): string; }
|
|
>foo : (x: RegExp) => string, Symbol(foo,Decl(objectTypesIdentityWithCallSignatures2.ts,23,9))
|
|
>x : RegExp, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,23,14))
|
|
>RegExp : RegExp, Symbol(RegExp,Decl(lib.d.ts,825,1),Decl(lib.d.ts,876,11))
|
|
>'' : string
|
|
|
|
function foo1(x: A);
|
|
>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1,Decl(objectTypesIdentityWithCallSignatures2.ts,23,42),Decl(objectTypesIdentityWithCallSignatures2.ts,25,20),Decl(objectTypesIdentityWithCallSignatures2.ts,26,20))
|
|
>x : A, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,25,14))
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
function foo1(x: A); // error
|
|
>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1,Decl(objectTypesIdentityWithCallSignatures2.ts,23,42),Decl(objectTypesIdentityWithCallSignatures2.ts,25,20),Decl(objectTypesIdentityWithCallSignatures2.ts,26,20))
|
|
>x : A, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,26,14))
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
function foo1(x: any) { }
|
|
>foo1 : { (x: A): any; (x: A): any; }, Symbol(foo1,Decl(objectTypesIdentityWithCallSignatures2.ts,23,42),Decl(objectTypesIdentityWithCallSignatures2.ts,25,20),Decl(objectTypesIdentityWithCallSignatures2.ts,26,20))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,27,14))
|
|
|
|
function foo1b(x: B);
|
|
>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b,Decl(objectTypesIdentityWithCallSignatures2.ts,27,25),Decl(objectTypesIdentityWithCallSignatures2.ts,29,21),Decl(objectTypesIdentityWithCallSignatures2.ts,30,21))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,29,15))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo1b(x: B); // error
|
|
>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b,Decl(objectTypesIdentityWithCallSignatures2.ts,27,25),Decl(objectTypesIdentityWithCallSignatures2.ts,29,21),Decl(objectTypesIdentityWithCallSignatures2.ts,30,21))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,30,15))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo1b(x: any) { }
|
|
>foo1b : { (x: B): any; (x: B): any; }, Symbol(foo1b,Decl(objectTypesIdentityWithCallSignatures2.ts,27,25),Decl(objectTypesIdentityWithCallSignatures2.ts,29,21),Decl(objectTypesIdentityWithCallSignatures2.ts,30,21))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,31,15))
|
|
|
|
function foo1c(x: C<string>);
|
|
>foo1c : { (x: C<string>): any; (x: C<string>): any; }, Symbol(foo1c,Decl(objectTypesIdentityWithCallSignatures2.ts,31,26),Decl(objectTypesIdentityWithCallSignatures2.ts,33,29),Decl(objectTypesIdentityWithCallSignatures2.ts,34,29))
|
|
>x : C<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,33,15))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo1c(x: C<string>); // error
|
|
>foo1c : { (x: C<string>): any; (x: C<string>): any; }, Symbol(foo1c,Decl(objectTypesIdentityWithCallSignatures2.ts,31,26),Decl(objectTypesIdentityWithCallSignatures2.ts,33,29),Decl(objectTypesIdentityWithCallSignatures2.ts,34,29))
|
|
>x : C<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,34,15))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo1c(x: any) { }
|
|
>foo1c : { (x: C<string>): any; (x: C<string>): any; }, Symbol(foo1c,Decl(objectTypesIdentityWithCallSignatures2.ts,31,26),Decl(objectTypesIdentityWithCallSignatures2.ts,33,29),Decl(objectTypesIdentityWithCallSignatures2.ts,34,29))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,35,15))
|
|
|
|
function foo2(x: I);
|
|
>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2,Decl(objectTypesIdentityWithCallSignatures2.ts,35,26),Decl(objectTypesIdentityWithCallSignatures2.ts,37,20),Decl(objectTypesIdentityWithCallSignatures2.ts,38,20))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,37,14))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo2(x: I); // error
|
|
>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2,Decl(objectTypesIdentityWithCallSignatures2.ts,35,26),Decl(objectTypesIdentityWithCallSignatures2.ts,37,20),Decl(objectTypesIdentityWithCallSignatures2.ts,38,20))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,38,14))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo2(x: any) { }
|
|
>foo2 : { (x: I): any; (x: I): any; }, Symbol(foo2,Decl(objectTypesIdentityWithCallSignatures2.ts,35,26),Decl(objectTypesIdentityWithCallSignatures2.ts,37,20),Decl(objectTypesIdentityWithCallSignatures2.ts,38,20))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,39,14))
|
|
|
|
function foo3(x: typeof a);
|
|
>foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo3,Decl(objectTypesIdentityWithCallSignatures2.ts,39,25),Decl(objectTypesIdentityWithCallSignatures2.ts,41,27),Decl(objectTypesIdentityWithCallSignatures2.ts,42,27))
|
|
>x : { foo(x: Date): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,41,14))
|
|
>a : { foo(x: Date): string; }, Symbol(a,Decl(objectTypesIdentityWithCallSignatures2.ts,22,3))
|
|
|
|
function foo3(x: typeof a); // error
|
|
>foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo3,Decl(objectTypesIdentityWithCallSignatures2.ts,39,25),Decl(objectTypesIdentityWithCallSignatures2.ts,41,27),Decl(objectTypesIdentityWithCallSignatures2.ts,42,27))
|
|
>x : { foo(x: Date): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,42,14))
|
|
>a : { foo(x: Date): string; }, Symbol(a,Decl(objectTypesIdentityWithCallSignatures2.ts,22,3))
|
|
|
|
function foo3(x: any) { }
|
|
>foo3 : { (x: { foo(x: Date): string; }): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo3,Decl(objectTypesIdentityWithCallSignatures2.ts,39,25),Decl(objectTypesIdentityWithCallSignatures2.ts,41,27),Decl(objectTypesIdentityWithCallSignatures2.ts,42,27))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,43,14))
|
|
|
|
function foo4(x: typeof b);
|
|
>foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo4,Decl(objectTypesIdentityWithCallSignatures2.ts,43,25),Decl(objectTypesIdentityWithCallSignatures2.ts,45,27),Decl(objectTypesIdentityWithCallSignatures2.ts,46,27))
|
|
>x : { foo(x: RegExp): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,45,14))
|
|
>b : { foo(x: RegExp): string; }, Symbol(b,Decl(objectTypesIdentityWithCallSignatures2.ts,23,3))
|
|
|
|
function foo4(x: typeof b); // error
|
|
>foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo4,Decl(objectTypesIdentityWithCallSignatures2.ts,43,25),Decl(objectTypesIdentityWithCallSignatures2.ts,45,27),Decl(objectTypesIdentityWithCallSignatures2.ts,46,27))
|
|
>x : { foo(x: RegExp): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,46,14))
|
|
>b : { foo(x: RegExp): string; }, Symbol(b,Decl(objectTypesIdentityWithCallSignatures2.ts,23,3))
|
|
|
|
function foo4(x: any) { }
|
|
>foo4 : { (x: { foo(x: RegExp): string; }): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo4,Decl(objectTypesIdentityWithCallSignatures2.ts,43,25),Decl(objectTypesIdentityWithCallSignatures2.ts,45,27),Decl(objectTypesIdentityWithCallSignatures2.ts,46,27))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,47,14))
|
|
|
|
function foo5(x: A);
|
|
>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5,Decl(objectTypesIdentityWithCallSignatures2.ts,47,25),Decl(objectTypesIdentityWithCallSignatures2.ts,49,20),Decl(objectTypesIdentityWithCallSignatures2.ts,50,20))
|
|
>x : A, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,49,14))
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
function foo5(x: B); // ok
|
|
>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5,Decl(objectTypesIdentityWithCallSignatures2.ts,47,25),Decl(objectTypesIdentityWithCallSignatures2.ts,49,20),Decl(objectTypesIdentityWithCallSignatures2.ts,50,20))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,50,14))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo5(x: any) { }
|
|
>foo5 : { (x: A): any; (x: B): any; }, Symbol(foo5,Decl(objectTypesIdentityWithCallSignatures2.ts,47,25),Decl(objectTypesIdentityWithCallSignatures2.ts,49,20),Decl(objectTypesIdentityWithCallSignatures2.ts,50,20))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,51,14))
|
|
|
|
function foo5b(x: A);
|
|
>foo5b : { (x: A): any; (x: C<string>): any; }, Symbol(foo5b,Decl(objectTypesIdentityWithCallSignatures2.ts,51,25),Decl(objectTypesIdentityWithCallSignatures2.ts,53,21),Decl(objectTypesIdentityWithCallSignatures2.ts,54,29))
|
|
>x : A, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,53,15))
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
function foo5b(x: C<string>); // error
|
|
>foo5b : { (x: A): any; (x: C<string>): any; }, Symbol(foo5b,Decl(objectTypesIdentityWithCallSignatures2.ts,51,25),Decl(objectTypesIdentityWithCallSignatures2.ts,53,21),Decl(objectTypesIdentityWithCallSignatures2.ts,54,29))
|
|
>x : C<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,54,15))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo5b(x: any) { }
|
|
>foo5b : { (x: A): any; (x: C<string>): any; }, Symbol(foo5b,Decl(objectTypesIdentityWithCallSignatures2.ts,51,25),Decl(objectTypesIdentityWithCallSignatures2.ts,53,21),Decl(objectTypesIdentityWithCallSignatures2.ts,54,29))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,55,15))
|
|
|
|
function foo6(x: A);
|
|
>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6,Decl(objectTypesIdentityWithCallSignatures2.ts,55,26),Decl(objectTypesIdentityWithCallSignatures2.ts,57,20),Decl(objectTypesIdentityWithCallSignatures2.ts,58,20))
|
|
>x : A, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,57,14))
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
function foo6(x: I); // ok
|
|
>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6,Decl(objectTypesIdentityWithCallSignatures2.ts,55,26),Decl(objectTypesIdentityWithCallSignatures2.ts,57,20),Decl(objectTypesIdentityWithCallSignatures2.ts,58,20))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,58,14))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo6(x: any) { }
|
|
>foo6 : { (x: A): any; (x: I): any; }, Symbol(foo6,Decl(objectTypesIdentityWithCallSignatures2.ts,55,26),Decl(objectTypesIdentityWithCallSignatures2.ts,57,20),Decl(objectTypesIdentityWithCallSignatures2.ts,58,20))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,59,14))
|
|
|
|
function foo7(x: A);
|
|
>foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo7,Decl(objectTypesIdentityWithCallSignatures2.ts,59,25),Decl(objectTypesIdentityWithCallSignatures2.ts,61,20),Decl(objectTypesIdentityWithCallSignatures2.ts,62,27))
|
|
>x : A, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,61,14))
|
|
>A : A, Symbol(A,Decl(objectTypesIdentityWithCallSignatures2.ts,0,0))
|
|
|
|
function foo7(x: typeof a); // ok
|
|
>foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo7,Decl(objectTypesIdentityWithCallSignatures2.ts,59,25),Decl(objectTypesIdentityWithCallSignatures2.ts,61,20),Decl(objectTypesIdentityWithCallSignatures2.ts,62,27))
|
|
>x : { foo(x: Date): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,62,14))
|
|
>a : { foo(x: Date): string; }, Symbol(a,Decl(objectTypesIdentityWithCallSignatures2.ts,22,3))
|
|
|
|
function foo7(x: any) { }
|
|
>foo7 : { (x: A): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo7,Decl(objectTypesIdentityWithCallSignatures2.ts,59,25),Decl(objectTypesIdentityWithCallSignatures2.ts,61,20),Decl(objectTypesIdentityWithCallSignatures2.ts,62,27))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,63,14))
|
|
|
|
function foo8(x: B);
|
|
>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8,Decl(objectTypesIdentityWithCallSignatures2.ts,63,25),Decl(objectTypesIdentityWithCallSignatures2.ts,65,20),Decl(objectTypesIdentityWithCallSignatures2.ts,66,20))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,65,14))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo8(x: I); // ok
|
|
>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8,Decl(objectTypesIdentityWithCallSignatures2.ts,63,25),Decl(objectTypesIdentityWithCallSignatures2.ts,65,20),Decl(objectTypesIdentityWithCallSignatures2.ts,66,20))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,66,14))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo8(x: any) { }
|
|
>foo8 : { (x: B): any; (x: I): any; }, Symbol(foo8,Decl(objectTypesIdentityWithCallSignatures2.ts,63,25),Decl(objectTypesIdentityWithCallSignatures2.ts,65,20),Decl(objectTypesIdentityWithCallSignatures2.ts,66,20))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,67,14))
|
|
|
|
function foo9(x: B);
|
|
>foo9 : { (x: B): any; (x: C<string>): any; }, Symbol(foo9,Decl(objectTypesIdentityWithCallSignatures2.ts,67,25),Decl(objectTypesIdentityWithCallSignatures2.ts,69,20),Decl(objectTypesIdentityWithCallSignatures2.ts,70,28))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,69,14))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo9(x: C<string>); // ok
|
|
>foo9 : { (x: B): any; (x: C<string>): any; }, Symbol(foo9,Decl(objectTypesIdentityWithCallSignatures2.ts,67,25),Decl(objectTypesIdentityWithCallSignatures2.ts,69,20),Decl(objectTypesIdentityWithCallSignatures2.ts,70,28))
|
|
>x : C<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,70,14))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo9(x: any) { }
|
|
>foo9 : { (x: B): any; (x: C<string>): any; }, Symbol(foo9,Decl(objectTypesIdentityWithCallSignatures2.ts,67,25),Decl(objectTypesIdentityWithCallSignatures2.ts,69,20),Decl(objectTypesIdentityWithCallSignatures2.ts,70,28))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,71,14))
|
|
|
|
function foo10(x: B);
|
|
>foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo10,Decl(objectTypesIdentityWithCallSignatures2.ts,71,25),Decl(objectTypesIdentityWithCallSignatures2.ts,73,21),Decl(objectTypesIdentityWithCallSignatures2.ts,74,28))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,73,15))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo10(x: typeof a); // ok
|
|
>foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo10,Decl(objectTypesIdentityWithCallSignatures2.ts,71,25),Decl(objectTypesIdentityWithCallSignatures2.ts,73,21),Decl(objectTypesIdentityWithCallSignatures2.ts,74,28))
|
|
>x : { foo(x: Date): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,74,15))
|
|
>a : { foo(x: Date): string; }, Symbol(a,Decl(objectTypesIdentityWithCallSignatures2.ts,22,3))
|
|
|
|
function foo10(x: any) { }
|
|
>foo10 : { (x: B): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo10,Decl(objectTypesIdentityWithCallSignatures2.ts,71,25),Decl(objectTypesIdentityWithCallSignatures2.ts,73,21),Decl(objectTypesIdentityWithCallSignatures2.ts,74,28))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,75,15))
|
|
|
|
function foo11(x: B);
|
|
>foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo11,Decl(objectTypesIdentityWithCallSignatures2.ts,75,26),Decl(objectTypesIdentityWithCallSignatures2.ts,77,21),Decl(objectTypesIdentityWithCallSignatures2.ts,78,28))
|
|
>x : B, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,77,15))
|
|
>B : B, Symbol(B,Decl(objectTypesIdentityWithCallSignatures2.ts,4,1))
|
|
|
|
function foo11(x: typeof b); // ok
|
|
>foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo11,Decl(objectTypesIdentityWithCallSignatures2.ts,75,26),Decl(objectTypesIdentityWithCallSignatures2.ts,77,21),Decl(objectTypesIdentityWithCallSignatures2.ts,78,28))
|
|
>x : { foo(x: RegExp): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,78,15))
|
|
>b : { foo(x: RegExp): string; }, Symbol(b,Decl(objectTypesIdentityWithCallSignatures2.ts,23,3))
|
|
|
|
function foo11(x: any) { }
|
|
>foo11 : { (x: B): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo11,Decl(objectTypesIdentityWithCallSignatures2.ts,75,26),Decl(objectTypesIdentityWithCallSignatures2.ts,77,21),Decl(objectTypesIdentityWithCallSignatures2.ts,78,28))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,79,15))
|
|
|
|
function foo12(x: I);
|
|
>foo12 : { (x: I): any; (x: C<string>): any; }, Symbol(foo12,Decl(objectTypesIdentityWithCallSignatures2.ts,79,26),Decl(objectTypesIdentityWithCallSignatures2.ts,81,21),Decl(objectTypesIdentityWithCallSignatures2.ts,82,29))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,81,15))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo12(x: C<string>); // ok
|
|
>foo12 : { (x: I): any; (x: C<string>): any; }, Symbol(foo12,Decl(objectTypesIdentityWithCallSignatures2.ts,79,26),Decl(objectTypesIdentityWithCallSignatures2.ts,81,21),Decl(objectTypesIdentityWithCallSignatures2.ts,82,29))
|
|
>x : C<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,82,15))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo12(x: any) { }
|
|
>foo12 : { (x: I): any; (x: C<string>): any; }, Symbol(foo12,Decl(objectTypesIdentityWithCallSignatures2.ts,79,26),Decl(objectTypesIdentityWithCallSignatures2.ts,81,21),Decl(objectTypesIdentityWithCallSignatures2.ts,82,29))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,83,15))
|
|
|
|
function foo12b(x: I2<string>);
|
|
>foo12b : { (x: I2<string>): any; (x: C<string>): any; }, Symbol(foo12b,Decl(objectTypesIdentityWithCallSignatures2.ts,83,26),Decl(objectTypesIdentityWithCallSignatures2.ts,85,31),Decl(objectTypesIdentityWithCallSignatures2.ts,86,30))
|
|
>x : I2<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,85,16))
|
|
>I2 : I2<T>, Symbol(I2,Decl(objectTypesIdentityWithCallSignatures2.ts,16,1))
|
|
|
|
function foo12b(x: C<string>); // error
|
|
>foo12b : { (x: I2<string>): any; (x: C<string>): any; }, Symbol(foo12b,Decl(objectTypesIdentityWithCallSignatures2.ts,83,26),Decl(objectTypesIdentityWithCallSignatures2.ts,85,31),Decl(objectTypesIdentityWithCallSignatures2.ts,86,30))
|
|
>x : C<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,86,16))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo12b(x: any) { }
|
|
>foo12b : { (x: I2<string>): any; (x: C<string>): any; }, Symbol(foo12b,Decl(objectTypesIdentityWithCallSignatures2.ts,83,26),Decl(objectTypesIdentityWithCallSignatures2.ts,85,31),Decl(objectTypesIdentityWithCallSignatures2.ts,86,30))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,87,16))
|
|
|
|
function foo13(x: I);
|
|
>foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo13,Decl(objectTypesIdentityWithCallSignatures2.ts,87,27),Decl(objectTypesIdentityWithCallSignatures2.ts,89,21),Decl(objectTypesIdentityWithCallSignatures2.ts,90,28))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,89,15))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo13(x: typeof a); // ok
|
|
>foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo13,Decl(objectTypesIdentityWithCallSignatures2.ts,87,27),Decl(objectTypesIdentityWithCallSignatures2.ts,89,21),Decl(objectTypesIdentityWithCallSignatures2.ts,90,28))
|
|
>x : { foo(x: Date): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,90,15))
|
|
>a : { foo(x: Date): string; }, Symbol(a,Decl(objectTypesIdentityWithCallSignatures2.ts,22,3))
|
|
|
|
function foo13(x: any) { }
|
|
>foo13 : { (x: I): any; (x: { foo(x: Date): string; }): any; }, Symbol(foo13,Decl(objectTypesIdentityWithCallSignatures2.ts,87,27),Decl(objectTypesIdentityWithCallSignatures2.ts,89,21),Decl(objectTypesIdentityWithCallSignatures2.ts,90,28))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,91,15))
|
|
|
|
function foo14(x: I);
|
|
>foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo14,Decl(objectTypesIdentityWithCallSignatures2.ts,91,26),Decl(objectTypesIdentityWithCallSignatures2.ts,93,21),Decl(objectTypesIdentityWithCallSignatures2.ts,94,28))
|
|
>x : I, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,93,15))
|
|
>I : I, Symbol(I,Decl(objectTypesIdentityWithCallSignatures2.ts,12,1))
|
|
|
|
function foo14(x: typeof b); // ok
|
|
>foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo14,Decl(objectTypesIdentityWithCallSignatures2.ts,91,26),Decl(objectTypesIdentityWithCallSignatures2.ts,93,21),Decl(objectTypesIdentityWithCallSignatures2.ts,94,28))
|
|
>x : { foo(x: RegExp): string; }, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,94,15))
|
|
>b : { foo(x: RegExp): string; }, Symbol(b,Decl(objectTypesIdentityWithCallSignatures2.ts,23,3))
|
|
|
|
function foo14(x: any) { }
|
|
>foo14 : { (x: I): any; (x: { foo(x: RegExp): string; }): any; }, Symbol(foo14,Decl(objectTypesIdentityWithCallSignatures2.ts,91,26),Decl(objectTypesIdentityWithCallSignatures2.ts,93,21),Decl(objectTypesIdentityWithCallSignatures2.ts,94,28))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,95,15))
|
|
|
|
function foo15(x: I2<string>);
|
|
>foo15 : { (x: I2<string>): any; (x: C<number>): any; }, Symbol(foo15,Decl(objectTypesIdentityWithCallSignatures2.ts,95,26),Decl(objectTypesIdentityWithCallSignatures2.ts,97,30),Decl(objectTypesIdentityWithCallSignatures2.ts,98,29))
|
|
>x : I2<string>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,97,15))
|
|
>I2 : I2<T>, Symbol(I2,Decl(objectTypesIdentityWithCallSignatures2.ts,16,1))
|
|
|
|
function foo15(x: C<number>); // ok
|
|
>foo15 : { (x: I2<string>): any; (x: C<number>): any; }, Symbol(foo15,Decl(objectTypesIdentityWithCallSignatures2.ts,95,26),Decl(objectTypesIdentityWithCallSignatures2.ts,97,30),Decl(objectTypesIdentityWithCallSignatures2.ts,98,29))
|
|
>x : C<number>, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,98,15))
|
|
>C : C<T>, Symbol(C,Decl(objectTypesIdentityWithCallSignatures2.ts,8,1))
|
|
|
|
function foo15(x: any) { }
|
|
>foo15 : { (x: I2<string>): any; (x: C<number>): any; }, Symbol(foo15,Decl(objectTypesIdentityWithCallSignatures2.ts,95,26),Decl(objectTypesIdentityWithCallSignatures2.ts,97,30),Decl(objectTypesIdentityWithCallSignatures2.ts,98,29))
|
|
>x : any, Symbol(x,Decl(objectTypesIdentityWithCallSignatures2.ts,99,15))
|
|
|