Skip to content

Commit ec573db

Browse files
committed
Attempt to fix perf regression (TODO explain)
1 parent 95a8a9c commit ec573db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: compiler/src/dotty/tools/dotc/core/OrderingConstraint.scala

+1
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
815815
newConstraint(hardVars = this.hardVars + tv)
816816

817817
def instType(tvar: TypeVar): Type = entry(tvar.origin) match
818+
case TypeBounds(lo, hi) if lo eq hi => lo
818819
case _: TypeBounds => NoType
819820
case tp: TypeParamRef => typeVarOfParam(tp).orElse(tp)
820821
case tp => tp

0 commit comments

Comments
 (0)