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

6 lines
144 B
TypeScript

declare module Q {
function f(fn:()=>void); // typechecking the function type shouldnot crash the compiler
}
Q.f(function() {this;});