mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Fix local and exported type alias merging (#36237)
* Fix local and exported type alias merging * Add baselines
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user