change the references to the error message

This commit is contained in:
yaoyao
2015-10-01 10:05:40 +08:00
parent aa9fa90967
commit 2428e65ac3
8 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -13452,7 +13452,7 @@ namespace ts {
// Checks for ambient external modules.
if (isAmbientExternalModule) {
if (!isGlobalSourceFile(node.parent)) {
error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules);
error(node.name, Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces);
}
if (isExternalModuleNameRelative(node.name.text)) {
error(node.name, Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name);