2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithCallSignatures6.ts ===
|
|
|
|
// checking assignment compatibility relations for function types. All valid
|
|
|
|
|
|
|
|
class Base { foo: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
|
|
|
>foo : string, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 2, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
class Derived extends Base { bar: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures6.ts, 2, 27))
|
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
|
|
|
>bar : string, Symbol(bar, Decl(assignmentCompatWithCallSignatures6.ts, 3, 28))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
class Derived2 extends Derived { baz: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>Derived2 : Derived2, Symbol(Derived2, Decl(assignmentCompatWithCallSignatures6.ts, 3, 43))
|
|
|
|
>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures6.ts, 2, 27))
|
|
|
|
>baz : string, Symbol(baz, Decl(assignmentCompatWithCallSignatures6.ts, 4, 32))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
class OtherDerived extends Base { bing: string; }
|
2015-04-13 23:01:57 +02:00
|
|
|
>OtherDerived : OtherDerived, Symbol(OtherDerived, Decl(assignmentCompatWithCallSignatures6.ts, 4, 47))
|
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
|
|
|
>bing : string, Symbol(bing, Decl(assignmentCompatWithCallSignatures6.ts, 5, 33))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface A {
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : A, Symbol(A, Decl(assignmentCompatWithCallSignatures6.ts, 5, 49))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a: <T>(x: T) => T[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : <T>(x: T) => T[], Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 8, 8))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 8, 11))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 8, 8))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 8, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a2: <T>(x: T) => string[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>a2 : <T>(x: T) => string[], Symbol(a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 9, 9))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 9, 12))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 9, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a3: <T>(x: T) => void;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a3 : <T>(x: T) => void, Symbol(a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 10, 9))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 10, 12))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 10, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a4: <T,U>(x: T, y: U) => string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a4 : <T, U>(x: T, y: U) => string, Symbol(a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 11, 9))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 11, 11))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 11, 14))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 11, 9))
|
|
|
|
>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 11, 19))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 11, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a5: <T,U>(x: (arg: T) => U) => T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a5 : <T, U>(x: (arg: T) => U) => T, Symbol(a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 12, 9))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 12, 11))
|
|
|
|
>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 12, 14))
|
|
|
|
>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures6.ts, 12, 18))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 12, 9))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 12, 11))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 12, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a6: <T extends Base>(x: (arg: T) => Derived) => T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a6 : <T extends Base>(x: (arg: T) => Derived) => T, Symbol(a6, Decl(assignmentCompatWithCallSignatures6.ts, 12, 37))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 13, 9))
|
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
|
|
|
>x : (arg: T) => Derived, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 13, 25))
|
|
|
|
>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures6.ts, 13, 29))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 13, 9))
|
|
|
|
>Derived : Derived, Symbol(Derived, Decl(assignmentCompatWithCallSignatures6.ts, 2, 27))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 13, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a11: <T>(x: { foo: T }, y: { foo: T; bar: T }) => Base;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a11 : <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10))
|
|
|
|
>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 14, 13))
|
|
|
|
>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 14, 17))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10))
|
|
|
|
>y : { foo: T; bar: T; }, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 14, 27))
|
|
|
|
>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 14, 32))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10))
|
|
|
|
>bar : T, Symbol(bar, Decl(assignmentCompatWithCallSignatures6.ts, 14, 40))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 14, 10))
|
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a15: <T>(x: { a: T; b: T }) => T[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>a15 : <T>(x: { a: T; b: T; }) => T[], Symbol(a15, Decl(assignmentCompatWithCallSignatures6.ts, 14, 59))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10))
|
|
|
|
>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 15, 13))
|
|
|
|
>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 15, 17))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10))
|
|
|
|
>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 15, 23))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 15, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a16: <T extends Base>(x: { a: T; b: T }) => T[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>a16 : <T extends Base>(x: { a: T; b: T; }) => T[], Symbol(a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10))
|
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
|
|
|
>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 16, 26))
|
|
|
|
>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 16, 30))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10))
|
|
|
|
>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 16, 36))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 16, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var x: A;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>A : A, Symbol(A, Decl(assignmentCompatWithCallSignatures6.ts, 5, 49))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b: <T>(x: T) => T[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : <T>(x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 21, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 21, 8))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 21, 11))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 21, 8))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 21, 8))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a = b;
|
|
|
|
>x.a = b : <T>(x: T) => T[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a : <T>(x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a : <T>(x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13))
|
|
|
|
>b : <T>(x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 21, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b = x.a;
|
|
|
|
>b = x.a : <T>(x: T) => T[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : <T>(x: T) => T[], Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 21, 3))
|
|
|
|
>x.a : <T>(x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a : <T>(x: T) => T[], Symbol(A.a, Decl(assignmentCompatWithCallSignatures6.ts, 7, 13))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b2: <T>(x: T) => string[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b2 : <T>(x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures6.ts, 24, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 24, 9))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 24, 12))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 24, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a2 = b2;
|
|
|
|
>x.a2 = b2 : <T>(x: T) => string[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a2 : <T>(x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a2 : <T>(x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24))
|
|
|
|
>b2 : <T>(x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures6.ts, 24, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b2 = x.a2;
|
|
|
|
>b2 = x.a2 : <T>(x: T) => string[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>b2 : <T>(x: T) => string[], Symbol(b2, Decl(assignmentCompatWithCallSignatures6.ts, 24, 3))
|
|
|
|
>x.a2 : <T>(x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a2 : <T>(x: T) => string[], Symbol(A.a2, Decl(assignmentCompatWithCallSignatures6.ts, 8, 24))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b3: <T>(x: T) => T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b3 : <T>(x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures6.ts, 27, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 27, 9))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 27, 12))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 27, 9))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 27, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a3 = b3;
|
|
|
|
>x.a3 = b3 : <T>(x: T) => T
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a3 : <T>(x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a3 : <T>(x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30))
|
|
|
|
>b3 : <T>(x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures6.ts, 27, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b3 = x.a3;
|
|
|
|
>b3 = x.a3 : <T>(x: T) => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>b3 : <T>(x: T) => T, Symbol(b3, Decl(assignmentCompatWithCallSignatures6.ts, 27, 3))
|
|
|
|
>x.a3 : <T>(x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a3 : <T>(x: T) => void, Symbol(A.a3, Decl(assignmentCompatWithCallSignatures6.ts, 9, 30))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b4: <T, U>(x: T, y: U) => string;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b4 : <T, U>(x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures6.ts, 30, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 30, 9))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 30, 11))
|
|
|
|
>x : T, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 30, 15))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 30, 9))
|
|
|
|
>y : U, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 30, 20))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 30, 11))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a4 = b4;
|
|
|
|
>x.a4 = b4 : <T, U>(x: T, y: U) => string
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a4 : <T, U>(x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a4 : <T, U>(x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26))
|
|
|
|
>b4 : <T, U>(x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures6.ts, 30, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b4 = x.a4;
|
|
|
|
>b4 = x.a4 : <T, U>(x: T, y: U) => string
|
2015-04-13 23:01:57 +02:00
|
|
|
>b4 : <T, U>(x: T, y: U) => string, Symbol(b4, Decl(assignmentCompatWithCallSignatures6.ts, 30, 3))
|
|
|
|
>x.a4 : <T, U>(x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a4 : <T, U>(x: T, y: U) => string, Symbol(A.a4, Decl(assignmentCompatWithCallSignatures6.ts, 10, 26))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b5: <T, U>(x: (arg: T) => U) => T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b5 : <T, U>(x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures6.ts, 33, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 33, 9))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 33, 11))
|
|
|
|
>x : (arg: T) => U, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 33, 15))
|
|
|
|
>arg : T, Symbol(arg, Decl(assignmentCompatWithCallSignatures6.ts, 33, 19))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 33, 9))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 33, 11))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 33, 9))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a5 = b5;
|
|
|
|
>x.a5 = b5 : <T, U>(x: (arg: T) => U) => T
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a5 : <T, U>(x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a5 : <T, U>(x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36))
|
|
|
|
>b5 : <T, U>(x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures6.ts, 33, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b5 = x.a5;
|
|
|
|
>b5 = x.a5 : <T, U>(x: (arg: T) => U) => T
|
2015-04-13 23:01:57 +02:00
|
|
|
>b5 : <T, U>(x: (arg: T) => U) => T, Symbol(b5, Decl(assignmentCompatWithCallSignatures6.ts, 33, 3))
|
|
|
|
>x.a5 : <T, U>(x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a5 : <T, U>(x: (arg: T) => U) => T, Symbol(A.a5, Decl(assignmentCompatWithCallSignatures6.ts, 11, 36))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b11: <T, U>(x: { foo: T }, y: { foo: U; bar: U }) => Base;
|
2015-04-13 23:01:57 +02:00
|
|
|
>b11 : <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures6.ts, 36, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 36, 10))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 36, 12))
|
|
|
|
>x : { foo: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 36, 16))
|
|
|
|
>foo : T, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 36, 20))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 36, 10))
|
|
|
|
>y : { foo: U; bar: U; }, Symbol(y, Decl(assignmentCompatWithCallSignatures6.ts, 36, 30))
|
|
|
|
>foo : U, Symbol(foo, Decl(assignmentCompatWithCallSignatures6.ts, 36, 35))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 36, 12))
|
|
|
|
>bar : U, Symbol(bar, Decl(assignmentCompatWithCallSignatures6.ts, 36, 43))
|
|
|
|
>U : U, Symbol(U, Decl(assignmentCompatWithCallSignatures6.ts, 36, 12))
|
|
|
|
>Base : Base, Symbol(Base, Decl(assignmentCompatWithCallSignatures6.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a11 = b11;
|
|
|
|
>x.a11 = b11 : <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a11 : <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a11 : <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54))
|
|
|
|
>b11 : <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures6.ts, 36, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b11 = x.a11;
|
|
|
|
>b11 = x.a11 : <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base
|
2015-04-13 23:01:57 +02:00
|
|
|
>b11 : <T, U>(x: { foo: T; }, y: { foo: U; bar: U; }) => Base, Symbol(b11, Decl(assignmentCompatWithCallSignatures6.ts, 36, 3))
|
|
|
|
>x.a11 : <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a11 : <T>(x: { foo: T; }, y: { foo: T; bar: T; }) => Base, Symbol(A.a11, Decl(assignmentCompatWithCallSignatures6.ts, 13, 54))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b16: <T>(x: { a: T; b: T }) => T[];
|
2015-04-13 23:01:57 +02:00
|
|
|
>b16 : <T>(x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures6.ts, 39, 3))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10))
|
|
|
|
>x : { a: T; b: T; }, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 39, 13))
|
|
|
|
>a : T, Symbol(a, Decl(assignmentCompatWithCallSignatures6.ts, 39, 17))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10))
|
|
|
|
>b : T, Symbol(b, Decl(assignmentCompatWithCallSignatures6.ts, 39, 23))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10))
|
|
|
|
>T : T, Symbol(T, Decl(assignmentCompatWithCallSignatures6.ts, 39, 10))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.a16 = b16;
|
|
|
|
>x.a16 = b16 : <T>(x: { a: T; b: T; }) => T[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.a16 : <T extends Base>(x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a16 : <T extends Base>(x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39))
|
|
|
|
>b16 : <T>(x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures6.ts, 39, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
b16 = x.a16;
|
|
|
|
>b16 = x.a16 : <T extends Base>(x: { a: T; b: T; }) => T[]
|
2015-04-13 23:01:57 +02:00
|
|
|
>b16 : <T>(x: { a: T; b: T; }) => T[], Symbol(b16, Decl(assignmentCompatWithCallSignatures6.ts, 39, 3))
|
|
|
|
>x.a16 : <T extends Base>(x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39))
|
|
|
|
>x : A, Symbol(x, Decl(assignmentCompatWithCallSignatures6.ts, 19, 3))
|
|
|
|
>a16 : <T extends Base>(x: { a: T; b: T; }) => T[], Symbol(A.a16, Decl(assignmentCompatWithCallSignatures6.ts, 15, 39))
|
2014-08-15 23:33:16 +02:00
|
|
|
|