10 lines
No EOL
357 B
Text
10 lines
No EOL
357 B
Text
==== 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); };
|
|
} |