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

19 lines
390 B
TypeScript

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