File tree 1 file changed +8
-11
lines changed
compiler/src/dotty/tools/dotc/core 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -632,16 +632,14 @@ object Types {
632
632
go(l) & (go(r), pre, safeIntersection = ctx.pendingMemberSearches.contains(name))
633
633
}
634
634
635
- { val recCount = ctx.findMemberCount + 1
636
- ctx.findMemberCount = recCount
637
- if (recCount >= Config .LogPendingFindMemberThreshold ) {
638
- ctx.pendingMemberSearches = name :: ctx.pendingMemberSearches
639
- if (ctx.property(TypeOps .findMemberLimit).isDefined &&
640
- ctx.findMemberCount > Config .PendingFindMemberLimit )
641
- return NoDenotation
642
- }
635
+ val recCount = ctx.findMemberCount
636
+ if (recCount >= Config .LogPendingFindMemberThreshold ) {
637
+ if (ctx.property(TypeOps .findMemberLimit).isDefined &&
638
+ ctx.findMemberCount > Config .PendingFindMemberLimit )
639
+ return NoDenotation
640
+ ctx.pendingMemberSearches = name :: ctx.pendingMemberSearches
643
641
}
644
-
642
+ ctx.findMemberCount = recCount + 1
645
643
// assert(ctx.findMemberCount < 20)
646
644
try go(this )
647
645
catch {
@@ -650,10 +648,9 @@ object Types {
650
648
throw ex // DEBUG
651
649
}
652
650
finally {
653
- val recCount = ctx.findMemberCount
654
651
if (recCount >= Config .LogPendingFindMemberThreshold )
655
652
ctx.pendingMemberSearches = ctx.pendingMemberSearches.tail
656
- ctx.findMemberCount = recCount - 1
653
+ ctx.findMemberCount = recCount
657
654
}
658
655
}
659
656
You can’t perform that action at this time.
0 commit comments