12 lines
234 B
JavaScript
12 lines
234 B
JavaScript
//// [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;
|
|
});
|