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

8 lines
162 B
TypeScript

//@module: amd
export interface IFoo<A> { }
export function foo<A>(fn: (ifoo: IFoo<A>) => void) {
foo(fn); // Invocation is necessary to repro (!)
}