TypeScript/tests/baselines/reference/assignmentCompatWithGenericCallSignatures.js
2014-07-12 17:30:19 -07:00

15 lines
379 B
JavaScript

//// [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]
var f;
var g;
f = g;
g = f;