TypeScript/tests/baselines/reference/collisionThisExpressionAndFunctionInGlobal.errors.txt
2014-07-18 16:16:28 -07:00

7 lines
298 B
Plaintext

==== 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;