TypeScript/tests/baselines/reference/objectTypesIdentityWithGenericCallSignatures2.symbols
2015-04-15 16:44:20 -07:00

362 lines
27 KiB
Plaintext

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