File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4801,14 +4801,14 @@ module ts {
4801
4801
// some level beyond that.
4802
4802
function isDeeplyNestedGeneric(type: Type, stack: Type[], depth: number): boolean {
4803
4803
// We track type references (created by createTypeReference) and instantiated types (created by instantiateType)
4804
- if (type.flags & (TypeFlags.Reference | TypeFlags.Instantiated) && depth >= 10 ) {
4804
+ if (type.flags & (TypeFlags.Reference | TypeFlags.Instantiated) && depth >= 5 ) {
4805
4805
let symbol = type.symbol;
4806
4806
let count = 0;
4807
4807
for (let i = 0; i < depth; i++) {
4808
4808
let t = stack[i];
4809
4809
if (t.flags & (TypeFlags.Reference | TypeFlags.Instantiated) && t.symbol === symbol) {
4810
4810
count++;
4811
- if (count >= 10 ) return true;
4811
+ if (count >= 5 ) return true;
4812
4812
}
4813
4813
}
4814
4814
}
You can’t perform that action at this time.
0 commit comments