Skip to content

Commit bb33c15

Browse files
committed
Fixing error reporting issue in checkExternalModuleExports
1 parent 91e8b82 commit bb33c15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9953,7 +9953,7 @@ module ts {
99539953
var defaultSymbol = getExportAssignmentSymbol(moduleSymbol);
99549954
if (defaultSymbol) {
99559955
if (hasExportedMembers(moduleSymbol)) {
9956-
var declaration = getDeclarationOfImportSymbol(defaultSymbol);
9956+
var declaration = getDeclarationOfImportSymbol(defaultSymbol) || defaultSymbol.valueDeclaration;
99579957
error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements);
99589958
}
99599959
}

0 commit comments

Comments
 (0)