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