356 lines
30 KiB
Text
356 lines
30 KiB
Text
=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts ===
|
|
// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those
|
|
// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required,
|
|
// optional or rest) and types, and identical return types.
|
|
|
|
class A {
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
foo<T>(x: T, y?: T): T { return null; }
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 4, 9))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 11))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 16))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 5, 8))
|
|
}
|
|
|
|
class B<T> {
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8))
|
|
|
|
foo(x: T, y?: T): T { return null; }
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 12))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 9, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 9, 13))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 8, 8))
|
|
}
|
|
|
|
class C<T> {
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8))
|
|
|
|
foo(x: T, y?: T): T { return null; }
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 12))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 13, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 13, 13))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 12, 8))
|
|
}
|
|
|
|
interface I<T> {
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12))
|
|
|
|
foo(x: T, y?: T): T;
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 16))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 17, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 17, 13))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 16, 12))
|
|
}
|
|
|
|
interface I2 {
|
|
>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 18, 1))
|
|
|
|
foo<T>(x: T, y?: T): T;
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 20, 14))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 11))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 16))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 21, 8))
|
|
}
|
|
|
|
var a: { foo<T>(x: T, y?: T): T }
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3))
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 8))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 16))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 21))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 13))
|
|
|
|
var b = { foo<T>(x: T, y?: T) { return x; } };
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3))
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 9))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 14))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 17))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 14))
|
|
>y : Symbol(y, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 22))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 14))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 17))
|
|
|
|
function foo1(x: A);
|
|
>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 46), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
function foo1(x: A); // error
|
|
>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 46), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
function foo1(x: any) { }
|
|
>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 46), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 27, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 28, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 14))
|
|
|
|
function foo1b(x: B<string>);
|
|
>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo1b(x: B<string>); // error
|
|
>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo1b(x: any) { }
|
|
>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 29, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 31, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 32, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 15))
|
|
|
|
function foo1c(x: C<string>);
|
|
>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo1c(x: C<string>); // error
|
|
>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo1c(x: any) { }
|
|
>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 33, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 35, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 36, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 15))
|
|
|
|
function foo2(x: I<string>);
|
|
>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo2(x: I<string>); // error
|
|
>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo2(x: any) { }
|
|
>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 37, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 39, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 40, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 14))
|
|
|
|
function foo3(x: typeof a);
|
|
>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 14))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3))
|
|
|
|
function foo3(x: typeof a); // error
|
|
>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 14))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3))
|
|
|
|
function foo3(x: any) { }
|
|
>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 41, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 43, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 44, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 14))
|
|
|
|
function foo4(x: typeof b);
|
|
>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 14))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3))
|
|
|
|
function foo4(x: typeof b); // error
|
|
>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 14))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3))
|
|
|
|
function foo4(x: any) { }
|
|
>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 45, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 47, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 48, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 14))
|
|
|
|
function foo5(x: A);
|
|
>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
function foo5(x: B<string>); // ok
|
|
>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 14))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo5(x: any) { }
|
|
>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 49, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 51, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 52, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 14))
|
|
|
|
function foo5b(x: A);
|
|
>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 15))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
function foo5b(x: C<string>); // ok
|
|
>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo5b(x: any) { }
|
|
>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 53, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 55, 21), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 56, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 15))
|
|
|
|
function foo6(x: A);
|
|
>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
function foo6(x: I<string>); // ok
|
|
>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo6(x: any) { }
|
|
>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 57, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 59, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 60, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 14))
|
|
|
|
function foo7(x: A);
|
|
>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 0, 0))
|
|
|
|
function foo7(x: typeof a); // no error, bug?
|
|
>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 14))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3))
|
|
|
|
function foo7(x: any) { }
|
|
>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 61, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 63, 20), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 64, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 14))
|
|
|
|
function foo8(x: B<string>);
|
|
>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 14))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo8(x: I<string>); // error
|
|
>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo8(x: any) { }
|
|
>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 65, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 67, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 68, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 14))
|
|
|
|
function foo9(x: B<string>);
|
|
>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 14))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo9(x: C<string>); // error
|
|
>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 14))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo9(x: any) { }
|
|
>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 69, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 71, 28), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 72, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 14))
|
|
|
|
function foo10(x: B<string>);
|
|
>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo10(x: typeof a); // ok
|
|
>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 15))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3))
|
|
|
|
function foo10(x: any) { }
|
|
>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 73, 25), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 75, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 76, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 15))
|
|
|
|
function foo11(x: B<string>);
|
|
>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 6, 1))
|
|
|
|
function foo11(x: typeof b); // ok
|
|
>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 15))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3))
|
|
|
|
function foo11(x: any) { }
|
|
>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 77, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 79, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 80, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 15))
|
|
|
|
function foo12(x: I<string>);
|
|
>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo12(x: C<string>); // error
|
|
>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo12(x: any) { }
|
|
>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 81, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 83, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 84, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 15))
|
|
|
|
function foo12b(x: I2);
|
|
>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 30))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 16))
|
|
>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 18, 1))
|
|
|
|
function foo12b(x: C<string>); // ok
|
|
>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 30))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 16))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo12b(x: any) { }
|
|
>foo12b : Symbol(foo12b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 85, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 87, 23), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 88, 30))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 16))
|
|
|
|
function foo13(x: I<string>);
|
|
>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo13(x: typeof a); // ok
|
|
>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 15))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 24, 3))
|
|
|
|
function foo13(x: any) { }
|
|
>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 89, 27), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 91, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 92, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 15))
|
|
|
|
function foo14(x: I<string>);
|
|
>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 14, 1))
|
|
|
|
function foo14(x: typeof b); // ok
|
|
>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 15))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 25, 3))
|
|
|
|
function foo14(x: any) { }
|
|
>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 93, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 95, 29), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 96, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 15))
|
|
|
|
function foo15(x: I2);
|
|
>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 15))
|
|
>I2 : Symbol(I2, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 18, 1))
|
|
|
|
function foo15(x: C<number>); // ok
|
|
>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 10, 1))
|
|
|
|
function foo15(x: any) { }
|
|
>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 97, 26), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 99, 22), Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 100, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithGenericCallSignaturesOptionalParams.ts, 101, 15))
|
|
|