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

14 lines
296 B
TypeScript

module Test {
export interface MyFunc {
<T>(value1: T): T;
}
export class MyClass {
constructor(func: MyFunc) { }
}
export function F(func: MyFunc) { }
}
var func: Test.MyFunc;
Test.F(func); // OK
var test = new Test.MyClass(func); // Should be OK