Skip to content

Commit 9f9218b

Browse files
authored
Update compiler/src/dotty/tools/dotc/core/TyperState.scala
1 parent d7521bf commit 9f9218b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TyperState.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class TyperState() {
232232
tvars.foreach(tvar =>
233233
if !tvar.inst.exists then
234234
if !isOwnedAnywhere(this, tvar) then includeVar(tvar)
235-
if constraint.isHard(tvar) then constraint = constraint.withHard(tvar))
235+
if other.isHard(tvar) then constraint = constraint.withHard(tvar))
236236
typeComparer.addToConstraint(tl, tvars)
237237
}) &&
238238
// Integrate the additional constraints on type variables from `other`

0 commit comments

Comments
 (0)