2014-07-13 01:04:16 +02:00
|
|
|
//// [assignmentCompatWithGenericCallSignatures.ts]
|
|
|
|
// some complex cases of assignment compat of generic signatures that stress contextual signature instantiation
|
|
|
|
|
|
|
|
var f: <S extends { p: string }[]>(x: S) => void
|
|
|
|
var g: <T extends { p: string }>(x: T[]) => void
|
|
|
|
|
|
|
|
f = g; // ok
|
|
|
|
g = f; // ok
|
|
|
|
|
|
|
|
//// [assignmentCompatWithGenericCallSignatures.js]
|
2014-08-12 00:54:12 +02:00
|
|
|
// some complex cases of assignment compat of generic signatures that stress contextual signature instantiation
|
2014-07-13 01:04:16 +02:00
|
|
|
var f;
|
|
|
|
var g;
|
|
|
|
f = g;
|
|
|
|
g = f;
|