TypeScript/tests/baselines/reference/collisionThisExpressionAndLocalVarInFunction.errors.txt
2014-07-18 16:16:28 -07:00

10 lines
357 B
Plaintext

==== tests/cases/compiler/collisionThisExpressionAndLocalVarInFunction.ts (1 errors) ====
var console: {
log(val: any);
}
function x() {
var _this = 5;
~~~~~
!!! Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
x => { console.log(this.x); };
}