TypeScript/tests/cases/compiler/matchingOfObjectLiteralConstraints.ts

4 lines
86 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
function foo2<T, U extends { y: T; }>(x: U, z: T) { }
foo2({ y: "foo" }, "foo");