TypeScript/tests/cases/compiler/modFunctionCrash.ts

6 lines
144 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare module Q {
function f(fn:()=>void); // typechecking the function type shouldnot crash the compiler
}
Q.f(function() {this;});