Skip to content

Commit e6bcef7

Browse files
committed
Combining unknown type+value symbol->unknownSymbol
Previously, when getExternalModuleMember tried to combine unknownSymbol from a type and unknownSymbol from a value, it combineValueAndTypeSymbol would create a new franken-symbol that was no longer equal to unknownSymbol.
1 parent 928da67 commit e6bcef7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiler/checker.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,6 +1364,9 @@ namespace ts {
13641364
// An 'import { Point } from "graphics"' needs to create a symbol that combines the value side 'Point'
13651365
// property with the type/namespace side interface 'Point'.
13661366
function combineValueAndTypeSymbols(valueSymbol: Symbol, typeSymbol: Symbol): Symbol {
1367+
if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) {
1368+
return unknownSymbol;
1369+
}
13671370
if (valueSymbol.flags & (SymbolFlags.Type | SymbolFlags.Namespace)) {
13681371
return valueSymbol;
13691372
}

0 commit comments

Comments
 (0)