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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
exportfunctiongetNavigationTree(sourceFile: SourceFile): NavigationTree{curSourceFile=sourceFile;constresult=convertToTree(rootNavigationBarNode(sourceFile));curSourceFile=undefined;returnresult;}letcurSourceFile: SourceFile;// Identifier 'curSourceFile' is never reassigned; use 'const' instead of 'let'.
letresponse: protocol.Response;try{({ response }=this.executeCommand(msg));}// Identifier 'response' is never reassigned; use 'const' instead of 'let'.
Bug Report
tslint@next
typescript@next
TypeScript code being linted
From microsoft/TypeScript#13006:
https://github.com/SaschaNaz/TypeScript/blob/27a60e4580076b544fa7f822df84414b7ea2c357/src/services/navigationBar.ts#L32
https://github.com/SaschaNaz/TypeScript/blob/27a60e4580076b544fa7f822df84414b7ea2c357/src/harness/unittests/session.ts#L395
with
tslint.json
configuration: https://github.com/Microsoft/TypeScript/blob/b15d1449550759f57759097a802abf14943e69cf/tslint.jsonActual behavior
Identifier '(variable name)' is never reassigned; use 'const' instead of 'let'.
Expected behavior
The variable is being reassigned so tslint shouldn't error out
The text was updated successfully, but these errors were encountered: