19 lines
357 B
JavaScript
19 lines
357 B
JavaScript
|
//// [noCollisionThisExpressionInFunctionAndVarInGlobal.ts]
|
||
|
var console: {
|
||
|
log(val: any);
|
||
|
}
|
||
|
var _this = 5;
|
||
|
function x() {
|
||
|
x => { console.log(this); };
|
||
|
}
|
||
|
|
||
|
//// [noCollisionThisExpressionInFunctionAndVarInGlobal.js]
|
||
|
var console;
|
||
|
var _this = 5;
|
||
|
function x() {
|
||
|
var _this = this;
|
||
|
(function (x) {
|
||
|
console.log(_this);
|
||
|
});
|
||
|
}
|