We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 261b280 commit 2548294Copy full SHA for 2548294
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -5343,14 +5343,11 @@ object Types {
5343
def isExpandingBounds: Boolean = expandingBounds
5344
5345
protected def expandBounds(tp: TypeBounds): Type =
5346
- if expandingBounds then tp
5347
- else {
5348
- val saved = expandingBounds
5349
- expandingBounds = true
5350
- val res = range(atVariance(-variance)(reapply(tp.lo)), reapply(tp.hi))
5351
- expandingBounds = saved
5352
- res
5353
- }
+ val saved = expandingBounds
+ expandingBounds = true
+ val res = range(atVariance(-variance)(reapply(tp.lo)), reapply(tp.hi))
+ expandingBounds = saved
+ res
5354
5355
/** Try to widen a named type to its info relative to given prefix `pre`, where possible.
5356
* The possible cases are listed inline in the code.
0 commit comments