Simplify mappedTypeStack cache key

This commit is contained in:
Nathan Shively-Sanders 2017-12-01 14:48:59 -08:00
parent 0e5b53579d
commit 84d747a89c

View file

@ -11395,7 +11395,7 @@ namespace ts {
// such that direct inferences to T get priority over inferences to Partial<T>, for example.
const inference = getInferenceInfoForType((<IndexType>constraintType).type);
if (inference && !inference.isFixed) {
const key = (source.symbol ? getSymbolId(source.symbol) : "no symbol") + "," + getSymbolId(target.symbol);
const key = (source.symbol ? getSymbolId(source.symbol) + "," : "") + getSymbolId(target.symbol);
if (contains(mappedTypeStack, key)) {
return;
}