Provide a symbol for salsa-inferred class types

This commit is contained in:
Nathan Shively-Sanders
2016-07-08 12:52:54 -07:00
parent f0d5ff6c94
commit 3c1a69b637
7 changed files with 303 additions and 10 deletions

View File

@@ -11673,7 +11673,7 @@ namespace ts {
function getInferredClassType(symbol: Symbol) {
const links = getSymbolLinks(symbol);
if (!links.inferredClassType) {
links.inferredClassType = createAnonymousType(undefined, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined);
links.inferredClassType = createAnonymousType(symbol, symbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined);
}
return links.inferredClassType;
}