From 42d226ca42499aa840f1cdc6e92d34be2c014aff Mon Sep 17 00:00:00 2001 From: TravCav Date: Thu, 5 Apr 2018 10:38:51 -0400 Subject: [PATCH] isDefaultExport is always false here. --- src/compiler/binder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 9ae8ec22670..9281719b860 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -399,7 +399,7 @@ namespace ts { // 1. multiple export default of class declaration or function declaration by checking NodeFlags.Default // 2. multiple export default of export assignment. This one doesn't have NodeFlags.Default on (as export default doesn't considered as modifiers) if (symbol.declarations && symbol.declarations.length && - (isDefaultExport || (node.kind === SyntaxKind.ExportAssignment && !(node).isExportEquals))) { + (node.kind === SyntaxKind.ExportAssignment && !(node).isExportEquals)) { message = Diagnostics.A_module_cannot_have_multiple_default_exports; } }