Skip to content

Commit bd45ecc

Browse files
committed
Add recursive calls to classBound
As observed by @smarter, makes sense to do this.
1 parent 5e34031 commit bd45ecc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotty/tools/dotc/core/Constants.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ object Constants {
173173
ctx.typerState.constraint.entry(param) match {
174174
case TypeBounds(lo, hi) =>
175175
if (hi.classSymbol.isPrimitiveValueClass) hi //constrain further with high bound
176-
else lo
177-
case NoType => param.binder.paramBounds(param.paramNum).lo
176+
else classBound(lo)
177+
case NoType => classBound(param.binder.paramBounds(param.paramNum).lo)
178178
case inst => classBound(inst)
179179
}
180180
case pt => pt

0 commit comments

Comments
 (0)