16 lines
343 B
TypeScript
16 lines
343 B
TypeScript
//// [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); });
|
|
}
|