377 lines
26 KiB
Text
377 lines
26 KiB
Text
=== tests/cases/conformance/types/typeRelationships/typeAndMemberIdentity/objectTypesIdentityWithNumericIndexers3.ts ===
|
|
// object types are identical structurally
|
|
|
|
class A {
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
[x: number]: string;
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 3, 5))
|
|
}
|
|
|
|
class B {
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 7, 5))
|
|
}
|
|
|
|
class C<T> {
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithNumericIndexers3.ts, 10, 8))
|
|
|
|
[x: number]: T;
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 11, 5))
|
|
>T : Symbol(T, Decl(objectTypesIdentityWithNumericIndexers3.ts, 10, 8))
|
|
}
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 15, 5))
|
|
}
|
|
|
|
class PA extends A {
|
|
>PA : Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
}
|
|
|
|
class PB extends B {
|
|
>PB : Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
}
|
|
|
|
var a: {
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3))
|
|
|
|
[x: string]: string;
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 25, 5))
|
|
}
|
|
var b: { [x: number]: string; } = { foo: '' };
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 10))
|
|
>foo : Symbol(foo, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 35))
|
|
|
|
function foo1(x: A);
|
|
>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo1(x: A); // error
|
|
>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo1(x: any) { }
|
|
>foo1 : Symbol(foo1, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 46), Decl(objectTypesIdentityWithNumericIndexers3.ts, 29, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 30, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 14))
|
|
|
|
function foo1b(x: B);
|
|
>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 21))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo1b(x: B); // error
|
|
>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 21))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo1b(x: any) { }
|
|
>foo1b : Symbol(foo1b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 31, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 33, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 34, 21))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 15))
|
|
|
|
function foo1c(x: C<string>);
|
|
>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1))
|
|
|
|
function foo1c(x: C<string>); // error
|
|
>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1))
|
|
|
|
function foo1c(x: any) { }
|
|
>foo1c : Symbol(foo1c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 35, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 37, 29), Decl(objectTypesIdentityWithNumericIndexers3.ts, 38, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 15))
|
|
|
|
function foo2(x: I);
|
|
>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo2(x: I); // error
|
|
>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo2(x: any) { }
|
|
>foo2 : Symbol(foo2, Decl(objectTypesIdentityWithNumericIndexers3.ts, 39, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 41, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 42, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 14))
|
|
|
|
function foo3(x: typeof a);
|
|
>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 14))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3))
|
|
|
|
function foo3(x: typeof a); // error
|
|
>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 14))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3))
|
|
|
|
function foo3(x: any) { }
|
|
>foo3 : Symbol(foo3, Decl(objectTypesIdentityWithNumericIndexers3.ts, 43, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 45, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 46, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 14))
|
|
|
|
function foo4(x: typeof b);
|
|
>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 14))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3))
|
|
|
|
function foo4(x: typeof b); // error
|
|
>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 14))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3))
|
|
|
|
function foo4(x: any) { }
|
|
>foo4 : Symbol(foo4, Decl(objectTypesIdentityWithNumericIndexers3.ts, 47, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 49, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 50, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 14))
|
|
|
|
function foo5(x: A);
|
|
>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo5(x: B); // ok
|
|
>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 14))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo5(x: any) { }
|
|
>foo5 : Symbol(foo5, Decl(objectTypesIdentityWithNumericIndexers3.ts, 51, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 53, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 54, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 14))
|
|
|
|
function foo5b(x: A);
|
|
>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 15))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo5b(x: C<string>); // error
|
|
>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1))
|
|
|
|
function foo5b(x: any) { }
|
|
>foo5b : Symbol(foo5b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 55, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 57, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 58, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 15))
|
|
|
|
function foo5c(x: A);
|
|
>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 15))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo5c(x: PA); // error
|
|
>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 15))
|
|
>PA : Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1))
|
|
|
|
function foo5c(x: any) { }
|
|
>foo5c : Symbol(foo5c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 59, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 61, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 62, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 15))
|
|
|
|
function foo5d(x: A);
|
|
>foo5d : Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 15))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo5d(x: PB); // ok
|
|
>foo5d : Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 15))
|
|
>PB : Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1))
|
|
|
|
function foo5d(x: any) { }
|
|
>foo5d : Symbol(foo5d, Decl(objectTypesIdentityWithNumericIndexers3.ts, 63, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 65, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 66, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 15))
|
|
|
|
function foo6(x: A);
|
|
>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo6(x: I); // ok
|
|
>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo6(x: any) { }
|
|
>foo6 : Symbol(foo6, Decl(objectTypesIdentityWithNumericIndexers3.ts, 67, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 69, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 70, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 14))
|
|
|
|
function foo7(x: A);
|
|
>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 14))
|
|
>A : Symbol(A, Decl(objectTypesIdentityWithNumericIndexers3.ts, 0, 0))
|
|
|
|
function foo7(x: typeof a); // ok
|
|
>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 14))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3))
|
|
|
|
function foo7(x: any) { }
|
|
>foo7 : Symbol(foo7, Decl(objectTypesIdentityWithNumericIndexers3.ts, 71, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 73, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 74, 27))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 14))
|
|
|
|
function foo8(x: B);
|
|
>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 14))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo8(x: I); // error
|
|
>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 14))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo8(x: any) { }
|
|
>foo8 : Symbol(foo8, Decl(objectTypesIdentityWithNumericIndexers3.ts, 75, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 77, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 78, 20))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 14))
|
|
|
|
function foo9(x: B);
|
|
>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 14))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo9(x: C<string>); // ok
|
|
>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 14))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1))
|
|
|
|
function foo9(x: any) { }
|
|
>foo9 : Symbol(foo9, Decl(objectTypesIdentityWithNumericIndexers3.ts, 79, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 81, 20), Decl(objectTypesIdentityWithNumericIndexers3.ts, 82, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 14))
|
|
|
|
function foo10(x: B);
|
|
>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo10(x: typeof a); // error
|
|
>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 15))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3))
|
|
|
|
function foo10(x: any) { }
|
|
>foo10 : Symbol(foo10, Decl(objectTypesIdentityWithNumericIndexers3.ts, 83, 25), Decl(objectTypesIdentityWithNumericIndexers3.ts, 85, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 86, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 15))
|
|
|
|
function foo11(x: B);
|
|
>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 15))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo11(x: typeof b); // ok
|
|
>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 15))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3))
|
|
|
|
function foo11(x: any) { }
|
|
>foo11 : Symbol(foo11, Decl(objectTypesIdentityWithNumericIndexers3.ts, 87, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 89, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 90, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 15))
|
|
|
|
function foo11b(x: B);
|
|
>foo11b : Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 23))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 16))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo11b(x: PA); // ok
|
|
>foo11b : Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 23))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 16))
|
|
>PA : Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1))
|
|
|
|
function foo11b(x: any) { }
|
|
>foo11b : Symbol(foo11b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 91, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 93, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 94, 23))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 16))
|
|
|
|
function foo11c(x: B);
|
|
>foo11c : Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 23))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 16))
|
|
>B : Symbol(B, Decl(objectTypesIdentityWithNumericIndexers3.ts, 4, 1))
|
|
|
|
function foo11c(x: PB); // error
|
|
>foo11c : Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 23))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 16))
|
|
>PB : Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1))
|
|
|
|
function foo11c(x: any) { }
|
|
>foo11c : Symbol(foo11c, Decl(objectTypesIdentityWithNumericIndexers3.ts, 95, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 97, 22), Decl(objectTypesIdentityWithNumericIndexers3.ts, 98, 23))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 16))
|
|
|
|
function foo12(x: I);
|
|
>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo12(x: C<string>); // ok
|
|
>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 15))
|
|
>C : Symbol(C, Decl(objectTypesIdentityWithNumericIndexers3.ts, 8, 1))
|
|
|
|
function foo12(x: any) { }
|
|
>foo12 : Symbol(foo12, Decl(objectTypesIdentityWithNumericIndexers3.ts, 99, 27), Decl(objectTypesIdentityWithNumericIndexers3.ts, 101, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 102, 29))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 15))
|
|
|
|
function foo13(x: I);
|
|
>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo13(x: typeof a); // error
|
|
>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 15))
|
|
>a : Symbol(a, Decl(objectTypesIdentityWithNumericIndexers3.ts, 24, 3))
|
|
|
|
function foo13(x: any) { }
|
|
>foo13 : Symbol(foo13, Decl(objectTypesIdentityWithNumericIndexers3.ts, 103, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 105, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 106, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 15))
|
|
|
|
function foo14(x: I);
|
|
>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo14(x: typeof b); // ok
|
|
>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 15))
|
|
>b : Symbol(b, Decl(objectTypesIdentityWithNumericIndexers3.ts, 27, 3))
|
|
|
|
function foo14(x: any) { }
|
|
>foo14 : Symbol(foo14, Decl(objectTypesIdentityWithNumericIndexers3.ts, 107, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 109, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 110, 28))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 15))
|
|
|
|
function foo15(x: I);
|
|
>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo15(x: PA); // ok
|
|
>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 15))
|
|
>PA : Symbol(PA, Decl(objectTypesIdentityWithNumericIndexers3.ts, 16, 1))
|
|
|
|
function foo15(x: any) { }
|
|
>foo15 : Symbol(foo15, Decl(objectTypesIdentityWithNumericIndexers3.ts, 111, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 113, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 114, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 15))
|
|
|
|
function foo16(x: I);
|
|
>foo16 : Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 15))
|
|
>I : Symbol(I, Decl(objectTypesIdentityWithNumericIndexers3.ts, 12, 1))
|
|
|
|
function foo16(x: PB); // error
|
|
>foo16 : Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 15))
|
|
>PB : Symbol(PB, Decl(objectTypesIdentityWithNumericIndexers3.ts, 19, 1))
|
|
|
|
function foo16(x: any) { }
|
|
>foo16 : Symbol(foo16, Decl(objectTypesIdentityWithNumericIndexers3.ts, 115, 26), Decl(objectTypesIdentityWithNumericIndexers3.ts, 117, 21), Decl(objectTypesIdentityWithNumericIndexers3.ts, 118, 22))
|
|
>x : Symbol(x, Decl(objectTypesIdentityWithNumericIndexers3.ts, 119, 15))
|
|
|
|
|