diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-18 19:30:01 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-21 17:41:15 +0200 |
commit | 24a95aa44a02d438d4df179a6475edfc690f9d9a (patch) | |
tree | 574090b659fbded970429c57828e9bd545686c31 /src/dotty/tools/dotc/core/Types.scala | |
parent | 110a438c000cd77caff28ebe9725d2a00f8060d6 (diff) | |
download | dotty-24a95aa44a02d438d4df179a6475edfc690f9d9a.tar.gz dotty-24a95aa44a02d438d4df179a6475edfc690f9d9a.tar.bz2 dotty-24a95aa44a02d438d4df179a6475edfc690f9d9a.zip |
Move threshold values to Config
It's a more logical home for them than the Context object.
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) |