mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-16 16:02:43 -05:00
Fix crash when attempting to merge an import with a local declaration (#18032)
* There should be no crash when attempting to merge an import with a local declaration * Show symbol has actually merged within the module
This commit is contained in:
@@ -19180,6 +19180,8 @@ namespace ts {
|
||||
: DeclarationSpaces.ExportNamespace;
|
||||
case SyntaxKind.ClassDeclaration:
|
||||
case SyntaxKind.EnumDeclaration:
|
||||
// A NamespaceImport declares an Alias, which is allowed to merge with other values within the module
|
||||
case SyntaxKind.NamespaceImport:
|
||||
return DeclarationSpaces.ExportType | DeclarationSpaces.ExportValue;
|
||||
case SyntaxKind.ImportEqualsDeclaration:
|
||||
let result = DeclarationSpaces.None;
|
||||
|
||||
Reference in New Issue
Block a user