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-02-07 05:03:24 +01:00
|
|
|
Q.f(function () { this; });
|