Simplify mappedTypeStack cache key
This commit is contained in:
parent
0e5b53579d
commit
84d747a89c
1 changed files with 1 additions and 1 deletions
|
@ -11395,7 +11395,7 @@ namespace ts {
|
||||||
// such that direct inferences to T get priority over inferences to Partial<T>, for example.
|
// such that direct inferences to T get priority over inferences to Partial<T>, for example.
|
||||||
const inference = getInferenceInfoForType((<IndexType>constraintType).type);
|
const inference = getInferenceInfoForType((<IndexType>constraintType).type);
|
||||||
if (inference && !inference.isFixed) {
|
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)) {
|
if (contains(mappedTypeStack, key)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue