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