mergeSymbol error uses first decl not valueDecl
Previously it assumed valueDeclaration was present, which is not true for type aliases.
This commit is contained in:
parent
6de4693118
commit
effa032d5d
1 changed files with 1 additions and 1 deletions
|
@ -574,7 +574,7 @@ namespace ts {
|
|||
recordMergedSymbol(target, source);
|
||||
}
|
||||
else if (target.flags & SymbolFlags.NamespaceModule) {
|
||||
error(source.valueDeclaration.name, Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target));
|
||||
error(source.declarations[0].name, Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target));
|
||||
}
|
||||
else {
|
||||
const message = target.flags & SymbolFlags.BlockScopedVariable || source.flags & SymbolFlags.BlockScopedVariable
|
||||
|
|
Loading…
Reference in a new issue