Skip to content

Commit b99b040

Browse files
committed
Addressing CR feedback
1 parent 9a1b031 commit b99b040

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/compiler/checker.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3454,7 +3454,7 @@ module ts {
34543454
if (!(expandingFlags & 1) && isDeeplyNestedGeneric(source, sourceStack)) expandingFlags |= 1;
34553455
if (!(expandingFlags & 2) && isDeeplyNestedGeneric(target, targetStack)) expandingFlags |= 2;
34563456
if (expandingFlags === 3) {
3457-
var result = Ternary.True;
3457+
var result = Ternary.Maybe;
34583458
}
34593459
else {
34603460
var result = propertiesRelatedTo(source, target, reportErrors);
@@ -3474,11 +3474,11 @@ module ts {
34743474
expandingFlags = saveExpandingFlags;
34753475
depth--;
34763476
if (result) {
3477-
var sourceCache = maybeStack[depth];
3477+
var maybeCache = maybeStack[depth];
34783478
// If result is definitely true, copy assumptions to global cache, else copy to next level up
3479-
var targetCache = result === Ternary.True || depth === 0 ? relation : maybeStack[depth - 1];
3480-
for (var p in sourceCache) {
3481-
targetCache[p] = sourceCache[p];
3479+
var destinationCache = result === Ternary.True || depth === 0 ? relation : maybeStack[depth - 1];
3480+
for (var p in maybeCache) {
3481+
destinationCache[p] = maybeCache[p];
34823482
}
34833483
}
34843484
else {

0 commit comments

Comments
 (0)