From 70d267419bdfab450495602ea3d8ceb9dac47e66 Mon Sep 17 00:00:00 2001 From: Kanchalai Tanglertsampan Date: Wed, 2 Mar 2016 17:13:51 -0800 Subject: [PATCH] Concat declaration error so we report them --- src/compiler/program.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiler/program.ts b/src/compiler/program.ts index b051c0f5bcc..9c4de60a734 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -973,7 +973,11 @@ namespace ts { } if (diagnostics.length > 0 || declarationDiagnostics.length > 0) { - return { diagnostics, sourceMaps: undefined, emitSkipped: true }; + return { + diagnostics: concatenate(diagnostics, declarationDiagnostics), + sourceMaps: undefined, + emitSkipped: true + }; } }