aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-21 20:20:44 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-21 20:20:44 +0100
commitd1b7f2c39561ae64c95b94242fe3bc91beb8af25 (patch)
tree86447535e894c20ae01143e786439f595e4e7887 /compiler/src/dotty/tools/dotc/core/Types.scala
parente7b045a2fa9b1196465b388393ab23ce5979616e (diff)
downloaddotty-d1b7f2c39561ae64c95b94242fe3bc91beb8af25.tar.gz
dotty-d1b7f2c39561ae64c95b94242fe3bc91beb8af25.tar.bz2
dotty-d1b7f2c39561ae64c95b94242fe3bc91beb8af25.zip
Address reviewer's comments
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/Types.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/Types.scala b/compiler/src/dotty/tools/dotc/core/Types.scala
index dcc1019e4..64fa48071 100644
--- a/compiler/src/dotty/tools/dotc/core/Types.scala
+++ b/compiler/src/dotty/tools/dotc/core/Types.scala
@@ -575,10 +575,9 @@ object Types {
ctx.findMemberCount = recCount
if (recCount >= Config.LogPendingFindMemberThreshold) {
ctx.pendingMemberSearches = name :: ctx.pendingMemberSearches
- ctx.property(TypeOps.findMemberLimit) match {
- case Some(limit) if ctx.findMemberCount > limit => return NoDenotation
- case _ =>
- }
+ if (ctx.property(TypeOps.findMemberLimit).isDefined &&
+ ctx.findMemberCount > Config.PendingFindMemberLimit)
+ return NoDenotation
}
}