Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Aug 31, 2022
1 parent d7521bf commit 8caff95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/core/TyperState.scala
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,12 @@ class TyperState() {
tvars.foreach(tvar =>
if !tvar.inst.exists then
if !isOwnedAnywhere(this, tvar) then includeVar(tvar)
if constraint.isHard(tvar) then constraint = constraint.withHard(tvar))
typeComparer.addToConstraint(tl, tvars)
}) &&
// Integrate the additional constraints on type variables from `other`
// and merge hardness markers
constraint.uninstVars.forall(tv =>
if other.isHard(tv) then constraint = constraint.withHard(tv)
val p = tv.origin
val otherLos = other.lower(p)
val otherHis = other.upper(p)
Expand Down

0 comments on commit 8caff95

Please sign in to comment.