TypeScript/tests/baselines/reference/collisionThisExpressionAndFunctionInGlobal.errors.txt
2014-09-11 16:11:08 -07:00

7 lines
312 B
Plaintext

==== tests/cases/compiler/collisionThisExpressionAndFunctionInGlobal.ts (1 errors) ====
function _this() { //Error
~~~~~
!!! error TS2399: Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
return 10;
}
var f = () => this;