File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -13485,7 +13485,7 @@ namespace ts {
13485
13485
// Return true if the given type is deeply nested. We consider this to be the case when structural type comparisons
13486
13486
// for 5 or more occurrences or instantiations of the type have been recorded on the given stack. It is possible,
13487
13487
// 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
13489
13489
// levels, but unequal at some level beyond that.
13490
13490
function isDeeplyNestedType(type: Type, stack: Type[], depth: number): boolean {
13491
13491
// 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