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

8 lines
300 B
Plaintext
Raw Normal View History

2014-07-19 01:13:21 +02:00
==== tests/cases/compiler/collisionThisExpressionAndModuleInGlobal.ts (1 errors) ====
module _this { //Error
~~~~~
!!! Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
class c {
}
}
var f = () => this;