diff --git a/src/compiler/program.ts b/src/compiler/program.ts index 50e53ab9484..06e9f6f30f1 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -766,7 +766,7 @@ namespace ts { const fileProcessingDiagnosticsInFile = fileProcessingDiagnostics.getDiagnostics(sourceFile.fileName); const programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName); - return bindDiagnostics.concat(checkDiagnostics).concat(fileProcessingDiagnosticsInFile).concat(programDiagnosticsInFile); + return bindDiagnostics.concat(checkDiagnostics, fileProcessingDiagnosticsInFile, programDiagnosticsInFile); }); }