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