diff --git a/src/compiler/tsc.ts b/src/compiler/tsc.ts index d0f888cfa02..7b74024aec4 100644 --- a/src/compiler/tsc.ts +++ b/src/compiler/tsc.ts @@ -301,7 +301,7 @@ namespace ts { sourceFile.fileWatcher.close(); sourceFile.fileWatcher = undefined; if (removed) { - var index = rootFileNames.indexOf(sourceFile.fileName); + let index = rootFileNames.indexOf(sourceFile.fileName); if (index >= 0) { rootFileNames.splice(index, 1); }