You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//==== tests/cases/compiler/collisionThisExpressionAndAliasInGlobal.ts (1 errors) ====
module a{exportvarb=10;}varf=()=>this;import_this=a;// Error//!!! Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.
Expected: errors as above
Actual: no errors
Similar but different error:
//==== tests/cases/compiler/collisionThisExpressionAndAmbientClassInGlobal.ts (1 errors) ====declareclass_this{// no error - as no code generation}varf=()=>this;vara=new_this();// Error//!!! Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference.
The text was updated successfully, but these errors were encountered:
Expected: errors as above
Actual: no errors
Similar but different error:
The text was updated successfully, but these errors were encountered: