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

14 lines
212 B
TypeScript

module M {
export class C {
m(fn:{ (n:number):string; },n2:number):string {
return fn(n2);
}
}
}
var c=new M.C();
c.m(function(n) { return "hello: "+n; },18);