This commit is contained in:
Ryan Cavanaugh 2015-12-09 11:18:40 -08:00
parent 50892acfd8
commit fcfc424b49

View file

@ -6904,7 +6904,7 @@ namespace ts {
.expression; // x
const classSymbol = checkExpression(className).symbol;
if (classSymbol && classSymbol.members) {
return createAnonymousType(undefined, classSymbol.members, emptyArray, emptyArray, /*stringIndexType*/ undefined, /*numberIndexType*/ undefined);
return getInferredClassType(classSymbol);
}
}
}