TypeScript/tests/baselines/reference/collisionThisExpressionAndFunctionInGlobal.errors.txt

7 lines
298 B
Plaintext
Raw Normal View History

2014-07-19 01:13:21 +02:00
==== 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;