Skip to content

Commit f8989af

Browse files
committed
And revert the comment, too
1 parent 0fe6d9b commit f8989af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13485,7 +13485,7 @@ namespace ts {
1348513485
// Return true if the given type is deeply nested. We consider this to be the case when structural type comparisons
1348613486
// for 5 or more occurrences or instantiations of the type have been recorded on the given stack. It is possible,
1348713487
// though highly unlikely, for this test to be true in a situation where a chain of instantiations is not infinitely
13488-
// expanding. Effectively, we will generate a false positive when two types are structurally equal to at least 4
13488+
// expanding. Effectively, we will generate a false positive when two types are structurally equal to at least 5
1348913489
// levels, but unequal at some level beyond that.
1349013490
function isDeeplyNestedType(type: Type, stack: Type[], depth: number): boolean {
1349113491
// We track all object types that have an associated symbol (representing the origin of the type)

0 commit comments

Comments
 (0)