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]
|
2015-03-26 21:46:35 +01:00
|
|
|
Q.f(function () { this; });
|