We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7521bf commit 9f9218bCopy full SHA for 9f9218b
compiler/src/dotty/tools/dotc/core/TyperState.scala
@@ -232,7 +232,7 @@ 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))
+ if other.isHard(tvar) then constraint = constraint.withHard(tvar))
236
typeComparer.addToConstraint(tl, tvars)
237
}) &&
238
// Integrate the additional constraints on type variables from `other`
0 commit comments