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