mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
332 B
TypeScript
15 lines
332 B
TypeScript
//// [tests/cases/compiler/collisionThisExpressionAndFunctionInGlobal.ts] ////
|
|
|
|
//// [collisionThisExpressionAndFunctionInGlobal.ts]
|
|
function _this() { //Error
|
|
return 10;
|
|
}
|
|
var f = () => this;
|
|
|
|
//// [collisionThisExpressionAndFunctionInGlobal.js]
|
|
"use strict";
|
|
function _this() {
|
|
return 10;
|
|
}
|
|
var f = () => this;
|