TypeScript/tests/baselines/reference/modFunctionCrash.js

13 lines
234 B
JavaScript
Raw Normal View History

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