13 lines
273 B
JavaScript
13 lines
273 B
JavaScript
//// [collisionThisExpressionAndFunctionInGlobal.ts]
|
|
function _this() { //Error
|
|
return 10;
|
|
}
|
|
var f = () => this;
|
|
|
|
//// [collisionThisExpressionAndFunctionInGlobal.js]
|
|
var _this = this;
|
|
function _this() {
|
|
return 10;
|
|
}
|
|
var f = function () { return _this; };
|