Skip to content

Commit 70d2674

Browse files
author
Kanchalai Tanglertsampan
committed
Concat declaration error so we report them
1 parent 5e53ba0 commit 70d2674

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/compiler/program.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,11 @@ namespace ts {
973973
}
974974

975975
if (diagnostics.length > 0 || declarationDiagnostics.length > 0) {
976-
return { diagnostics, sourceMaps: undefined, emitSkipped: true };
976+
return {
977+
diagnostics: concatenate(diagnostics, declarationDiagnostics),
978+
sourceMaps: undefined,
979+
emitSkipped: true
980+
};
977981
}
978982
}
979983

0 commit comments

Comments
 (0)