TypeScript/tests/cases/compiler/inferentialTypingUsingApparentType1.ts

5 lines
105 B
TypeScript
Raw Normal View History

2015-07-03 00:21:43 +02:00
function foo<T extends (p: string) => number>(x: T): T {
return undefined;
}
foo(x => x.length);