File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -5343,14 +5343,11 @@ object Types {
5343
5343
def isExpandingBounds : Boolean = expandingBounds
5344
5344
5345
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
- }
5346
+ val saved = expandingBounds
5347
+ expandingBounds = true
5348
+ val res = range(atVariance(- variance)(reapply(tp.lo)), reapply(tp.hi))
5349
+ expandingBounds = saved
5350
+ res
5354
5351
5355
5352
/** Try to widen a named type to its info relative to given prefix `pre`, where possible.
5356
5353
* The possible cases are listed inline in the code.
You can’t perform that action at this time.
0 commit comments