17 lines
337 B
JavaScript
17 lines
337 B
JavaScript
//// [noCollisionThisExpressionAndLocalVarInFunction.ts]
|
|
var console: {
|
|
log(val: any);
|
|
}
|
|
function x() {
|
|
var _this = 5;
|
|
x => { console.log(_this); };
|
|
}
|
|
|
|
//// [noCollisionThisExpressionAndLocalVarInFunction.js]
|
|
var console;
|
|
function x() {
|
|
var _this = 5;
|
|
(function (x) {
|
|
console.log(_this);
|
|
});
|
|
}
|