TypeScript/tests/cases/compiler/anonterface.ts

14 lines
212 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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);