We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7521bf commit 8caff95Copy full SHA for 8caff95
compiler/src/dotty/tools/dotc/core/TyperState.scala
@@ -232,11 +232,12 @@ class TyperState() {
232
tvars.foreach(tvar =>
233
if !tvar.inst.exists then
234
if !isOwnedAnywhere(this, tvar) then includeVar(tvar)
235
- if constraint.isHard(tvar) then constraint = constraint.withHard(tvar))
236
typeComparer.addToConstraint(tl, tvars)
237
}) &&
238
// Integrate the additional constraints on type variables from `other`
+ // and merge hardness markers
239
constraint.uninstVars.forall(tv =>
240
+ if other.isHard(tv) then constraint = constraint.withHard(tv)
241
val p = tv.origin
242
val otherLos = other.lower(p)
243
val otherHis = other.upper(p)
0 commit comments