7 lines
No EOL
298 B
Text
7 lines
No EOL
298 B
Text
==== tests/cases/compiler/collisionThisExpressionAndFunctionInGlobal.ts (1 errors) ====
|
|
function _this() { //Error
|
|
~~~~~
|
|
!!! Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
|
|
return 10;
|
|
}
|
|
var f = () => this; |