Simplify mappedTypeStack cache key
This commit is contained in:
parent
0e5b53579d
commit
84d747a89c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue