2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/collisionThisExpressionAndVarInGlobal.ts(1,5): error TS2399: Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
|
|
|
|
|
|
|
|
|
2014-07-19 01:13:21 +02:00
|
|
|
==== tests/cases/compiler/collisionThisExpressionAndVarInGlobal.ts (1 errors) ====
|
|
|
|
var _this = 1;
|
|
|
|
~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2399: Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
|
2014-07-19 01:13:21 +02:00
|
|
|
var f = () => this;
|