Skip to content

Commit

Permalink
Attempt to fix perf regression (TODO explain)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchyb committed Apr 18, 2024
1 parent 95a8a9c commit ec573db
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ class OrderingConstraint(private val boundsMap: ParamBounds,
newConstraint(hardVars = this.hardVars + tv)

def instType(tvar: TypeVar): Type = entry(tvar.origin) match
case TypeBounds(lo, hi) if lo eq hi => lo
case _: TypeBounds => NoType
case tp: TypeParamRef => typeVarOfParam(tp).orElse(tp)
case tp => tp
Expand Down

0 comments on commit ec573db

Please sign in to comment.