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

8 lines
331 B
Plaintext

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