diff options
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index 6e18f4a50..d5e0e3eba 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -1426,7 +1426,7 @@ object Types { def isTerm = isInstanceOf[TermRef] /** Guard against cycles that can arise if given `op` - * follows info. The prblematic cases are a type alias to itself or + * follows info. The problematic cases are a type alias to itself or * bounded by itself or a val typed as itself: * * type T <: T @@ -1437,7 +1437,7 @@ object Types { */ final def controlled[T](op: => T)(implicit ctx: Context): T = try { ctx.underlyingRecursions += 1 - if (ctx.underlyingRecursions < LogPendingUnderlyingThreshold) + if (ctx.underlyingRecursions < Config.LogPendingUnderlyingThreshold) op else if (ctx.pendingUnderlying contains this) throw CyclicReference(symbol) |