Merge pull request #7356 from Microsoft/fix7354

Concat declaration error so we report them
This commit is contained in:
Yui
2016-03-09 13:02:45 -08:00

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