File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments