Fix local and exported type alias merging (#36237)

* Fix local and exported type alias merging

* Add baselines
This commit is contained in:
Andrew Branch
2020-01-22 13:16:49 -08:00
committed by GitHub
parent 82a3eb5b5f
commit 1d5749ef78
6 changed files with 38 additions and 1 deletions

View File

@@ -29187,7 +29187,7 @@ namespace ts {
}
}
function checkExportsOnMergedDeclarations(node: Node): void {
function checkExportsOnMergedDeclarations(node: Declaration): void {
if (!produceDiagnostics) {
return;
}
@@ -32493,6 +32493,7 @@ namespace ts {
checkGrammarDecoratorsAndModifiers(node);
checkTypeNameIsReserved(node.name, Diagnostics.Type_alias_name_cannot_be_0);
checkExportsOnMergedDeclarations(node);
checkTypeParameters(node.typeParameters);
checkSourceElement(node.type);
registerForUnusedIdentifiersCheck(node);