Skip to content

Commit 01516c8

Browse files
committed
Update to use TypeFlags.Instantiable in instantiateSymbol
1 parent f990e4e commit 01516c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8591,7 +8591,7 @@ namespace ts {
85918591

85928592
function instantiateSymbol(symbol: Symbol, mapper: TypeMapper): Symbol {
85938593
const links = getSymbolLinks(symbol);
8594-
if (links.type && !maybeTypeOfKind(links.type, TypeFlags.Object | TypeFlags.TypeVariable | TypeFlags.Index)) {
8594+
if (links.type && !maybeTypeOfKind(links.type, TypeFlags.Object | TypeFlags.Instantiable)) {
85958595
// If the type of the symbol is already resolved, and if that type could not possibly
85968596
// be affected by instantiation, simply return the symbol itself.
85978597
return symbol;

0 commit comments

Comments
 (0)