TypeScript/tests/cases/compiler/noCollisionThisExpressionAndLocalVarInLambda.ts
2014-07-12 17:30:19 -07:00

8 lines
192 B
TypeScript

declare function alert(message?: any): void;
var x = {
doStuff: (callback) => () => {
var _this = 2;
return callback(_this);
}
}
alert(x.doStuff(x => alert(x)));