TypeScript/tests/cases/compiler/collisionThisExpressionAndLocalVarInLambda.ts

9 lines
193 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
declare function alert(message?: any): void;
var x = {
doStuff: (callback) => () => {
var _this = 2;
return callback(this);
}
}
alert(x.doStuff(x => alert(x)));