Skip to content

Commit

Permalink
Update LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanchalai Tanglertsampan committed Sep 14, 2016
1 parent c98103b commit 5f1336b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions lib/typescriptServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5f1336b

Please sign in to comment.