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

18 lines
372 B
TypeScript

class a {
method1() {
return {
doStuff: (callback) => () => {
var _this = 2;
return callback(this);
}
}
}
method2() {
var _this = 2;
return {
doStuff: (callback) => () => {
return callback(this);
}
}
}
}