We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163ba2f commit 61f0c7aCopy full SHA for 61f0c7a
src/compiler/checker.ts
@@ -9692,6 +9692,7 @@ namespace ts {
9692
type = errorType;
9693
}
9694
symbol.type = type;
9695
+ symbol.mapper = undefined!;
9696
9697
return symbol.type;
9698
@@ -13663,7 +13664,7 @@ namespace ts {
13663
13664
13665
function instantiateSymbol(symbol: Symbol, mapper: TypeMapper): Symbol {
13666
const links = getSymbolLinks(symbol);
- if (links.type && !maybeTypeOfKind(links.type, TypeFlags.Object | TypeFlags.Instantiable)) {
13667
+ if (links.type && !couldContainTypeVariables(links.type)) {
13668
// If the type of the symbol is already resolved, and if that type could not possibly
13669
// be affected by instantiation, simply return the symbol itself.
13670
return symbol;
0 commit comments