TypeScript/tests/cases/compiler/typeInferenceWithTypeAnnotation.ts
2014-07-12 17:30:19 -07:00

3 lines
66 B
TypeScript

declare function f<T>(p: (t: T) => T): T;
f((n: number) => n);