Skip to content

Commit 84d747a

Browse files
committed
Simplify mappedTypeStack cache key
1 parent 0e5b535 commit 84d747a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11395,7 +11395,7 @@ namespace ts {
1139511395
// such that direct inferences to T get priority over inferences to Partial<T>, for example.
1139611396
const inference = getInferenceInfoForType((<IndexType>constraintType).type);
1139711397
if (inference && !inference.isFixed) {
11398-
const key = (source.symbol ? getSymbolId(source.symbol) : "no symbol") + "," + getSymbolId(target.symbol);
11398+
const key = (source.symbol ? getSymbolId(source.symbol) + "," : "") + getSymbolId(target.symbol);
1139911399
if (contains(mappedTypeStack, key)) {
1140011400
return;
1140111401
}

0 commit comments

Comments
 (0)