File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ trait TypeOps { this: Context => // TODO: Make standalone object.
90
90
else {
91
91
val pre1 = asSeenFrom(tp.prefix, pre, cls, theMap)
92
92
if (pre1.isUnsafeNonvariant) {
93
- val safeCtx = ctx.withProperty(TypeOps .findMemberLimit, Some (Config . PendingFindMemberLimit ))
93
+ val safeCtx = ctx.withProperty(TypeOps .findMemberLimit, Some (() ))
94
94
pre1.member(tp.name)(safeCtx).info match {
95
95
case TypeAlias (alias) =>
96
96
// try to follow aliases of this will avoid skolemization.
@@ -565,5 +565,5 @@ object TypeOps {
565
565
* of recursive member searches. If the limit is reached, findMember returns
566
566
* NoDenotation.
567
567
*/
568
- val findMemberLimit = new Property .Key [Int ]
568
+ val findMemberLimit = new Property .Key [Unit ]
569
569
}
Original file line number Diff line number Diff line change @@ -575,10 +575,9 @@ object Types {
575
575
ctx.findMemberCount = recCount
576
576
if (recCount >= Config .LogPendingFindMemberThreshold ) {
577
577
ctx.pendingMemberSearches = name :: ctx.pendingMemberSearches
578
- ctx.property(TypeOps .findMemberLimit) match {
579
- case Some (limit) if ctx.findMemberCount > limit => return NoDenotation
580
- case _ =>
581
- }
578
+ if (ctx.property(TypeOps .findMemberLimit).isDefined &&
579
+ ctx.findMemberCount > Config .PendingFindMemberLimit )
580
+ return NoDenotation
582
581
}
583
582
}
584
583
You can’t perform that action at this time.
0 commit comments