This commit is contained in:
Kanchalai Tanglertsampan 2016-09-14 16:38:11 -07:00
Родитель c98103b1fb
Коммит 5f1336be9e
5 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -13848,7 +13848,7 @@ var ts;
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
}
}
if (result && isInExternalModule) {
if (result && isInExternalModule && (meaning & 107455) === 107455) {
var decls = result.declarations;
if (decls && decls.length === 1 && decls[0].kind === 228) {
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

Просмотреть файл

@ -14844,7 +14844,7 @@ var ts;
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
}
}
if (result && isInExternalModule) {
if (result && isInExternalModule && (meaning & 107455) === 107455) {
var decls = result.declarations;
if (decls && decls.length === 1 && decls[0].kind === 228) {
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

Просмотреть файл

@ -14844,7 +14844,7 @@ var ts;
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
}
}
if (result && isInExternalModule) {
if (result && isInExternalModule && (meaning & 107455) === 107455) {
var decls = result.declarations;
if (decls && decls.length === 1 && decls[0].kind === 228) {
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

Просмотреть файл

@ -17337,8 +17337,8 @@ var ts;
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
}
}
// If we're in an external module, we can't reference symbols created from UMD export declarations
if (result && isInExternalModule) {
// If we're in an external module, we can't reference value symbols created from UMD export declarations
if (result && isInExternalModule && (meaning & 107455 /* Value */) === 107455 /* Value */) {
var decls = result.declarations;
if (decls && decls.length === 1 && decls[0].kind === 228 /* NamespaceExportDeclaration */) {
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

Просмотреть файл

@ -17337,8 +17337,8 @@ var ts;
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
}
}
// If we're in an external module, we can't reference symbols created from UMD export declarations
if (result && isInExternalModule) {
// If we're in an external module, we can't reference value symbols created from UMD export declarations
if (result && isInExternalModule && (meaning & 107455 /* Value */) === 107455 /* Value */) {
var decls = result.declarations;
if (decls && decls.length === 1 && decls[0].kind === 228 /* NamespaceExportDeclaration */) {
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);