11 lines
No EOL
522 B
Text
11 lines
No EOL
522 B
Text
tests/cases/compiler/collisionThisExpressionAndAliasInGlobal.ts(5,8): error TS2399: Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
|
|
|
|
|
|
==== 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. |