From 05ceda747dc6f7bbc2d524d4c0543be7f360ef82 Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Mon, 26 Sep 2016 01:00:24 -0400 Subject: [PATCH] Fix error when compiling with declarations --- src/compiler/checker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 51550ef873f..77623944804 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -2746,8 +2746,9 @@ namespace ts { // Type parameters are always visible case SyntaxKind.TypeParameter: - // Source file is always visible + // Source file and namespace export are always visible case SyntaxKind.SourceFile: + case SyntaxKind.NamespaceExportDeclaration: return true; // Export assignments do not create name bindings outside the module