Merge pull request #16194 from Microsoft/fix-reexported-missing-alias

Fix reexported missing alias
This commit is contained in:
Nathan Shively-Sanders
2017-06-05 16:04:26 -07:00
committed by GitHub
4 changed files with 64 additions and 0 deletions

View File

@@ -1370,6 +1370,9 @@ namespace ts {
// An 'import { Point } from "graphics"' needs to create a symbol that combines the value side 'Point'
// property with the type/namespace side interface 'Point'.
function combineValueAndTypeSymbols(valueSymbol: Symbol, typeSymbol: Symbol): Symbol {
if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) {
return unknownSymbol;
}
if (valueSymbol.flags & (SymbolFlags.Type | SymbolFlags.Namespace)) {
return valueSymbol;
}