Concat declaration error so we report them

This commit is contained in:
Kanchalai Tanglertsampan 2016-03-02 17:13:51 -08:00
parent 5e53ba06cf
commit 70d267419b

View File

@ -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
};
}
}