Skip to content

Commit 42d226c

Browse files
committed
isDefaultExport is always false here.
1 parent 3ce2559 commit 42d226c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/binder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ namespace ts {
399399
// 1. multiple export default of class declaration or function declaration by checking NodeFlags.Default
400400
// 2. multiple export default of export assignment. This one doesn't have NodeFlags.Default on (as export default doesn't considered as modifiers)
401401
if (symbol.declarations && symbol.declarations.length &&
402-
(isDefaultExport || (node.kind === SyntaxKind.ExportAssignment && !(<ExportAssignment>node).isExportEquals))) {
402+
(node.kind === SyntaxKind.ExportAssignment && !(<ExportAssignment>node).isExportEquals)) {
403403
message = Diagnostics.A_module_cannot_have_multiple_default_exports;
404404
}
405405
}

0 commit comments

Comments
 (0)