We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de4693 commit effa032Copy full SHA for effa032
src/compiler/checker.ts
@@ -574,7 +574,7 @@ namespace ts {
574
recordMergedSymbol(target, source);
575
}
576
else if (target.flags & SymbolFlags.NamespaceModule) {
577
- 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));
578
579
else {
580
const message = target.flags & SymbolFlags.BlockScopedVariable || source.flags & SymbolFlags.BlockScopedVariable
0 commit comments