This commit is contained in:
Ryan Cavanaugh
2016-03-03 14:58:17 -08:00
parent 887adb0146
commit 34cf10542c

View File

@@ -1417,7 +1417,7 @@ namespace ts {
}
else {
const parent = node.parent as SourceFile;
if (!isExternalModule(<SourceFile>node.parent)) {
file.bindDiagnostics.push(createDiagnosticForNode(node, Diagnostics.Global_module_exports_may_only_appear_in_module_files));
return;